mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
Make sure that nix build
works in --impure
mode
Regression test for <https://github.com/NixOS/nix/issues/6488>
This commit is contained in:
parent
b3ed32d0fd
commit
4c5aa8520c
@ -56,6 +56,13 @@ nix build -f multiple-outputs.nix --json 'e^*' --no-link | jq --exit-status '
|
||||
(.outputs | keys == ["a", "b", "c"]))
|
||||
'
|
||||
|
||||
# Make sure that `--impure` works (regression test for https://github.com/NixOS/nix/issues/6488)
|
||||
nix build --impure -f multiple-outputs.nix --json e --no-link | jq --exit-status '
|
||||
(.[0] |
|
||||
(.drvPath | match(".*multiple-outputs-e.drv")) and
|
||||
(.outputs | keys == ["a", "b"]))
|
||||
'
|
||||
|
||||
testNormalization () {
|
||||
clearStore
|
||||
outPath=$(nix-build ./simple.nix --no-out-link)
|
||||
|
Loading…
Reference in New Issue
Block a user