mirror of
https://github.com/NixOS/nix
synced 2025-07-02 21:51:50 +02:00
Merge pull request #8490 from flox/stdin_handling
fix: Do not apply default installables when using --stdin
This commit is contained in:
commit
05eb06a1de
2 changed files with 7 additions and 3 deletions
|
@ -129,3 +129,7 @@ nix build --impure -f multiple-outputs.nix --json e --no-link | jq --exit-status
|
|||
(.drvPath | match(".*multiple-outputs-e.drv")) and
|
||||
(.outputs | keys == ["a_a", "b"]))
|
||||
'
|
||||
|
||||
# Make sure that `--stdin` works and does not apply any defaults
|
||||
printf "" | nix build --no-link --stdin --json | jq --exit-status '. == []'
|
||||
printf "%s\n" "$drv^*" | nix build --no-link --stdin --json | jq --exit-status '.[0]|has("drvPath")'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue