mirror of
https://github.com/NixOS/nix
synced 2025-07-03 06:11:46 +02:00
Add test cases for flake urls with fragments
(cherry picked from commit 994f1b5c0d
)
This commit is contained in:
parent
f72b0b5b00
commit
1e92097ce3
1 changed files with 8 additions and 0 deletions
|
@ -193,6 +193,14 @@ nix build -o "$TEST_ROOT/result" flake1
|
||||||
nix build -o "$TEST_ROOT/result" "$flake1Dir"
|
nix build -o "$TEST_ROOT/result" "$flake1Dir"
|
||||||
nix build -o "$TEST_ROOT/result" "git+file://$flake1Dir"
|
nix build -o "$TEST_ROOT/result" "git+file://$flake1Dir"
|
||||||
|
|
||||||
|
# Test explicit packages.default.
|
||||||
|
nix build -o "$TEST_ROOT/result" "$flake1Dir#default"
|
||||||
|
nix build -o "$TEST_ROOT/result" "git+file://$flake1Dir#default"
|
||||||
|
|
||||||
|
# Test explicit packages.default with query.
|
||||||
|
nix build -o "$TEST_ROOT/result" "$flake1Dir?ref=HEAD#default"
|
||||||
|
nix build -o "$TEST_ROOT/result" "git+file://$flake1Dir?ref=HEAD#default"
|
||||||
|
|
||||||
# Check that store symlinks inside a flake are not interpreted as flakes.
|
# Check that store symlinks inside a flake are not interpreted as flakes.
|
||||||
nix build -o "$flake1Dir/result" "git+file://$flake1Dir"
|
nix build -o "$flake1Dir/result" "git+file://$flake1Dir"
|
||||||
nix path-info "$flake1Dir/result"
|
nix path-info "$flake1Dir/result"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue