mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 00:02:25 +00:00
Update tests/functional/flakes/flakes.sh
Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
parent
f29a220b70
commit
1f41682217
@ -237,7 +237,9 @@ nix build -o "$TEST_ROOT/result" --expr "(builtins.getFlake \"git+file://$flake1
|
||||
# Regression test for baseNameOf on the root of the flake.
|
||||
[[ $(nix eval --raw flake1#baseName) =~ ^[a-z0-9]+-source$ ]]
|
||||
|
||||
# Test that the root of a tree returns a path named /nix/store/<hash1>-<hash2>-source (#10627).
|
||||
# Test that the root of a tree returns a path named /nix/store/<hash1>-<hash2>-source.
|
||||
# This behavior is *not* desired, but has existed for a while.
|
||||
# Issue #10627 what to do about it.
|
||||
[[ $(nix eval --raw flake1#root) =~ ^.*/[a-z0-9]+-[a-z0-9]+-source$ ]]
|
||||
|
||||
# Building a flake with an unlocked dependency should fail in pure mode.
|
||||
|
Loading…
Reference in New Issue
Block a user