You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# While we're at it, test the ‘unsafeDiscardOutputDependency’ primop.
30
34
outPath=$(nix-build multiple-outputs.nix -A d --no-out-link)
31
35
drvPath=$(cat $outPath/drv)
32
-
outPath=$(nix-store -q $drvPath)
33
-
(! [ -e"$outPath" ])
36
+
if [[ -n"${NIX_TESTS_CA_BY_DEFAULT:-}" ]];then
37
+
expectStderr 1 nix-store -q $drvPath| grepQuiet "Cannot use output path of floating content-addressing derivation until we know what it is (e.g. by building it)"
38
+
else
39
+
outPath=$(nix-store -q $drvPath)
40
+
(! [ -e"$outPath" ])
41
+
fi
34
42
35
43
# Do a build of something that depends on a derivation with multiple
36
44
# outputs.
@@ -60,14 +68,16 @@ outPath2=$(nix-build $(nix-instantiate multiple-outputs.nix -A a.second) --no-ou
0 commit comments