mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Update tests/functional/flakes/flakes.sh
Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
parent
f29a220b70
commit
1f41682217
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue