1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

Use ^ not ! in indexed store derivations installable syntax

Match the other syntax that was recently added
This commit is contained in:
John Ericson 2022-05-12 20:10:02 +00:00
parent b18720ee17
commit 49ad315c03
5 changed files with 13 additions and 14 deletions

View file

@ -4,11 +4,11 @@ enableFeatures "computed-derivations"
restartDaemon
drv=$(nix eval -f multiple-outputs.nix --raw a.drvPath)
if nix build "$drv!not-an-output" --json; then
if nix build "$drv^not-an-output" --json; then
fail "'not-an-output' should fail to build"
fi
nix build "$drv!first" --json | jq --exit-status '
nix build "$drv^first" --json | jq --exit-status '
(.[0] |
(.drvPath | match(".*multiple-outputs-a.drv")) and
(.outputs |