mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Fix handling of bare flakerefs containing a colon
This commit is contained in:
parent
8abb8647a3
commit
8cb3bbd504
2 changed files with 7 additions and 4 deletions
|
@ -134,6 +134,9 @@ nix build -o $TEST_ROOT/result --flake-registry $registry flake1:foo
|
|||
nix build -o $TEST_ROOT/result --flake-registry $registry flake1
|
||||
[[ -e $TEST_ROOT/result/hello ]]
|
||||
|
||||
nix build -o $TEST_ROOT/result --flake-registry $registry $flake1Dir
|
||||
nix build -o $TEST_ROOT/result --flake-registry $registry file://$flake1Dir
|
||||
|
||||
# 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