1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-19 10:39:38 +02:00

Merge pull request #12269 from NixOS/mergify/bp/2.25-maintenance/pr-12254

Fix relative 'path:' flakerefs in the CLI (backport #12254)
This commit is contained in:
Eelco Dolstra 2025-01-15 21:54:43 +01:00 committed by GitHub
commit 40bb5ec675
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 22 additions and 14 deletions

View file

@ -222,6 +222,9 @@ nix build -o "$TEST_ROOT/result" flake1
nix build -o "$TEST_ROOT/result" "$flake1Dir"
nix build -o "$TEST_ROOT/result" "git+file://$flake1Dir"
(cd "$flake1Dir" && nix build -o "$TEST_ROOT/result" ".")
(cd "$flake1Dir" && nix build -o "$TEST_ROOT/result" "path:.")
(cd "$flake1Dir" && nix build -o "$TEST_ROOT/result" "git+file:.")
# Test explicit packages.default.
nix build -o "$TEST_ROOT/result" "$flake1Dir#default"