just the tail of nix log /nix/store/52nin4jf3g607hkbalywqz0vjcdg4z2s-nix-2.18.0pre20230731_57113a6.drv
:
ran test tests/derivation-json.sh... [FAIL]
+++(/build/source/tests/common/vars-and-functions.sh:274) trap onError ERR
++(common.sh:8) [[ -n '' ]]
++(derivation-json.sh:3) nix-instantiate simple.nix
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
+(derivation-json.sh:3) drvPath=/build/nix-test/tests/derivation-json/store/7n22c0g55amv41d1n1xc4wcd286xzn16-simple.drv
+(derivation-json.sh:6) nix derivation show /build/nix-test/tests/derivation-json/store/7n22c0g55amv41d1n1xc4wcd286xzn16-simple.drv
warning: you don't have Internet access; disabling some network-dependent features
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/build/nix-test/tests/derivation-json/store/7n22c0g55amv41d1n1xc4wcd286xzn16-simple.drv^*'
++(derivation-json.sh:7) nix derivation add
warning: you don't have Internet access; disabling some network-dependent features
+(derivation-json.sh:7) drvPath2=/build/nix-test/tests/derivation-json/store/7n22c0g55amv41d1n1xc4wcd286xzn16-simple.drv
+(derivation-json.sh:8) [[ /build/nix-test/tests/derivation-json/store/7n22c0g55amv41d1n1xc4wcd286xzn16-simple.drv = \/\b\u\i\l\d\/\n\i\x\-\t\e\s\t\/\t\e\s\t\s\/\d\e\r\i\v\a\t\i\o\n\-\j\s\o\n\/\s\t\o\r\e\/\7\n\2\2\c\0\g\5\5\a\m\v\4\1\d\1\n\1\x\c\4\w>
+(derivation-json.sh:11) cat /build/nix-test/tests/derivation-json/test-home/simple.json
+(derivation-json.sh:11) jq '.[]'
++(derivation-json.sh:12) nix derivation add
warning: you don't have Internet access; disabling some network-dependent features
+(derivation-json.sh:12) drvPath3=/build/nix-test/tests/derivation-json/store/7n22c0g55amv41d1n1xc4wcd286xzn16-simple.drv
+(derivation-json.sh:13) [[ /build/nix-test/tests/derivation-json/store/7n22c0g55amv41d1n1xc4wcd286xzn16-simple.drv = \/\b\u\i\l\d\/\n\i\x\-\t\e\s\t\/\t\e\s\t\s\/\d\e\r\i\v\a\t\i\o\n\-\j\s\o\n\/\s\t\o\r\e\/\7\n\2\2\c\0\g\5\5\a\m\v\4\1\d\1\n\1\x\c\4\>
+(derivation-json.sh:16) cat /build/nix-test/tests/derivation-json/test-home/simple-unwrapped.json
+(derivation-json.sh:16) grepQuiet 'has incorrect output'
+(/build/source/tests/common/vars-and-functions.sh:266) grep 'has incorrect output'
+(derivation-json.sh:16) jq '.name = "foo"'
+(derivation-json.sh:16) expectStderr 1 nix derivation add
+(/build/source/tests/common/vars-and-functions.sh:207) local expected res
+(/build/source/tests/common/vars-and-functions.sh:208) expected=1
+(/build/source/tests/common/vars-and-functions.sh:209) shift
+(/build/source/tests/common/vars-and-functions.sh:210) nix derivation add
+(/build/source/tests/common/vars-and-functions.sh:210) res=1
+(/build/source/tests/common/vars-and-functions.sh:211) [[ 1 -ne 1 ]]
+(/build/source/tests/common/vars-and-functions.sh:215) return 0
++(derivation-json.sh:19) nix-instantiate dependencies.nix
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
+(derivation-json.sh:19) topDrvPath=/build/nix-test/tests/derivation-json/store/b08nmxkskc7vdj1phpngsn1rdnldqhyh-dependencies-top.drv
+(derivation-json.sh:21) nix derivation show -r /build/nix-test/tests/derivation-json/store/b08nmxkskc7vdj1phpngsn1rdnldqhyh-dependencies-top.drv
warning: you don't have Internet access; disabling some network-dependent features
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/build/nix-test/tests/derivation-json/store/b08nmxkskc7vdj1phpngsn1rdnldqhyh-dependencies-top.drv^*'
++(derivation-json.sh:22) jq length /build/nix-test/tests/derivation-json/test-home/depend.json
+(derivation-json.sh:22) [[ 4 = 4 ]]
++(derivation-json.sh:24) nix derivation add
warning: you don't have Internet access; disabling some network-dependent features
+(derivation-json.sh:24) dependPaths='/build/nix-test/tests/derivation-json/store/b08nmxkskc7vdj1phpngsn1rdnldqhyh-dependencies-top.drv
/build/nix-test/tests/derivation-json/store/ngih9qlp3x67s455msagh3drx59pk0wa-dependencies-input-1.drv
/build/nix-test/tests/derivation-json/store/xk3b03x2yrqyamvzz53xf315h0kgd3qf-dependencies-input-2.drv
/build/nix-test/tests/derivation-json/store/z1a9k6a6646fqb97wdc9vkym0bf4573b-dependencies-input-0.drv'
++(derivation-json.sh:25) jq -r 'keys | .[]' /build/nix-test/tests/derivation-json/test-home/depend.json
+(derivation-json.sh:25) [[ /build/nix-test/tests/derivation-json/store/b08nmxkskc7vdj1phpngsn1rdnldqhyh-dependencies-top.drv
/build/nix-test/tests/derivation-json/store/ngih9qlp3x67s455msagh3drx59pk0wa-dependencies-input-1.drv
/build/nix-test/tests/derivation-json/store/xk3b03x2yrqyamvzz53xf315h0kgd3qf-dependencies-input-2.drv
/build/nix-test/tests/derivation-json/store/z1a9k6a6646fqb97wdc9vkym0bf4573b-dependencies-input-0.drv = \/\b\u\i\l\d\/\n\i\x\-\t\e\s\t\/\t\e\s\t\s\/\d\e\r\i\v\a\t\i\o\n\-\j\s\o\n\/\s\t\o\r\e\/\b\0\8\n\m\x\k\s\k\c\7\v\d\j\1\p\h\p\n\g\s\n\1\r\d\n\l\d\>
\/\b\u\i\l\d\/\n\i\x\-\t\e\s\t\/\t\e\s\t\s\/\d\e\r\i\v\a\t\i\o\n\-\j\s\o\n\/\s\t\o\r\e\/\n\g\i\h\9\q\l\p\3\x\6\7\s\4\5\5\m\s\a\g\h\3\d\r\x\5\9\p\k\0\w\a\-\d\e\p\e\n\d\e\n\c\i\e\s\-\i\n\p\u\t\-\1\.\d\r\v\
\/\b\u\i\l\d\/\n\i\x\-\t\e\s\t\/\t\e\s\t\s\/\d\e\r\i\v\a\t\i\o\n\-\j\s\o\n\/\s\t\o\r\e\/\x\k\3\b\0\3\x\2\y\r\q\y\a\m\v\z\z\5\3\x\f\3\1\5\h\0\k\g\d\3\q\f\-\d\e\p\e\n\d\e\n\c\i\e\s\-\i\n\p\u\t\-\2\.\d\r\v\
\/\b\u\i\l\d\/\n\i\x\-\t\e\s\t\/\t\e\s\t\s\/\d\e\r\i\v\a\t\i\o\n\-\j\s\o\n\/\s\t\o\r\e\/\z\1\a\9\k\6\a\6\6\4\6\f\q\b\9\7\w\d\c\9\v\k\y\m\0\b\f\4\5\7\3\b\-\d\e\p\e\n\d\e\n\c\i\e\s\-\i\n\p\u\t\-\0\.\d\r\v ]]
+(derivation-json.sh:28) diff -u /dev/fd/63 /dev/fd/62
++(derivation-json.sh:29) nix derivation add
++(derivation-json.sh:29) jq 'map_values( .outputs = { out: .env.out } )'
++(derivation-json.sh:29) cat /build/nix-test/tests/derivation-json/test-home/simple.json
++(derivation-json.sh:28) cat
++(derivation-json.sh:29) true
--- /dev/fd/63 2023-08-04 06:50:52.378167776 +0000
+++ /dev/fd/62 2023-08-04 06:50:52.378167776 +0000
@@ -1,4 +1,3 @@
-warning: you don't have Internet access; disabling some network-dependent features
error:
… while adding JSON derivation with key '/build/nix-test/tests/derivation-json/store/7n22c0g55amv41d1n1xc4wcd286xzn16-simple.drv'
++(derivation-json.sh:28) onError
++(/build/source/tests/common/vars-and-functions.sh:237) set +x
derivation-json.sh: test failed at:
main in derivation-json.sh:28
make: *** [mk/lib.mk:125: tests/derivation-json.sh.test] Error 1
make: *** Waiting for unfinished jobs....
ran test tests/db-migration.sh... [SKIP]
ran test tests/output-normalization.sh... [PASS]
ran test tests/bash-profile.sh... [PASS]
ran test tests/selfref-gc.sh... [PASS]
ran test tests/pass-as-file.sh... [PASS]
ran test tests/build.sh... [PASS]
ran test tests/build-delete.sh... [PASS]