mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
copyPathToStore(): Preserve symlinks
E.g. in a derivation attribute `foo = ./bar`, if ./bar is a symlink,
we should copy the symlink to the store, not its target. This restores
the behaviour of Nix <= 2.19.
(cherry picked from commit 26b87e78b5
)
# Conflicts:
# tests/functional/meson.build
This commit is contained in:
parent
0f5f24223d
commit
3d6a9c7410
4 changed files with 266 additions and 2 deletions
|
@ -15,7 +15,7 @@ echo "output path is $outPath"
|
|||
(! [ -w $outPath ])
|
||||
|
||||
text=$(cat "$outPath/hello")
|
||||
if test "$text" != "Hello World!"; then exit 1; fi
|
||||
[[ "$text" = "Hello World!" ]]
|
||||
|
||||
TODO_NixOS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue