mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Improve error message for fixed-outputs with references.
This codepath is possible, e.g. with a dockerTools.pullImage of an image with a Nix store.
This commit is contained in:
parent
e23983db82
commit
eeb2f083c5
3 changed files with 16 additions and 1 deletions
|
@ -26,6 +26,9 @@ nix-build fixed.nix -A good2 --no-out-link
|
|||
echo 'testing reallyBad...'
|
||||
nix-instantiate fixed.nix -A reallyBad && fail "should fail"
|
||||
|
||||
echo 'testing fixed with references...'
|
||||
expectStderr 1 nix-build fixed.nix -A badReferences | grepQuiet "not allowed to refer to other store paths"
|
||||
|
||||
# While we're at it, check attribute selection a bit more.
|
||||
echo 'testing attribute selection...'
|
||||
test $(nix-instantiate fixed.nix -A good.1 | wc -l) = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue