mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Handle store symlinks in flake directories
E.g. 'nix path-info ./result' inside a flake directory now works again.
This commit is contained in:
parent
4f6a7c8621
commit
d132d057a8
5 changed files with 25 additions and 12 deletions
|
@ -149,6 +149,10 @@ nix build -o $TEST_ROOT/result --flake-registry $registry flake1
|
|||
nix build -o $TEST_ROOT/result --flake-registry $registry $flake1Dir
|
||||
nix build -o $TEST_ROOT/result --flake-registry $registry file://$flake1Dir
|
||||
|
||||
# CHeck that store symlinks inside a flake are not interpreted as flakes.
|
||||
nix build -o $flake1Dir/result --flake-registry $registry file://$flake1Dir
|
||||
nix path-info $flake1Dir/result
|
||||
|
||||
# Building a flake with an unlocked dependency should fail in pure mode.
|
||||
(! nix eval "(builtins.getFlake "$flake2Dir")")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue