diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-12-15 16:00:46 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-12-15 16:02:27 +0100 |
commit | 0687e16c4afd131540181cc66136418ac1cb845c (patch) | |
tree | 71d3df010b0d863bd2014fc4407d1dc7db3ac1c6 /tests/impure-derivations.sh | |
parent | 5d77c08858096a3d8f95735ec2227c544f5cdb9c (diff) |
Fix a crash in DerivedPath::Built::toJSON() with impure derivations
The use of 'nullptr' here didn't result in a null JSON value, but in a
nullptr being cast to a string, which aborts.
Diffstat (limited to 'tests/impure-derivations.sh')
-rw-r--r-- | tests/impure-derivations.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/impure-derivations.sh b/tests/impure-derivations.sh index 7ca9ce742..23a193833 100644 --- a/tests/impure-derivations.sh +++ b/tests/impure-derivations.sh @@ -12,6 +12,7 @@ clearStore # Basic test of impure derivations: building one a second time should not use the previous result. printf 0 > $TEST_ROOT/counter +nix build --dry-run --json --file ./impure-derivations.nix impure.all json=$(nix build -L --no-link --json --file ./impure-derivations.nix impure.all) path1=$(echo $json | jq -r .[].outputs.out) path1_stuff=$(echo $json | jq -r .[].outputs.stuff) |