Update tests/functional/flakes/flakes.sh

Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
Eelco Dolstra 2024-04-30 18:10:16 +02:00 committed by GitHub
parent f29a220b70
commit 1f41682217
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.