From 4074142e688ee156739461343a460b838ea48e92 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Tue, 23 Jun 2020 13:34:04 -0400 Subject: [PATCH] Override substitute option in test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is disabled automatically when we’re offline. --- tests/git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/git.sh b/tests/git.sh index cd9979ada29..85ce99f6c40 100644 --- a/tests/git.sh +++ b/tests/git.sh @@ -67,7 +67,7 @@ if [[ -n $(type -p git) ]]; then # Check that we can substitute it from other places. nix copy --to file://$cacheDir $path nix-store --delete $path - path2=$(nix eval --raw "(builtins.fetchTree { type = \"git\"; url = file:///no-such-repo; treeHash = \"$treeHash\"; }).outPath" --substituters file://$cacheDir) + path2=$(nix eval --raw "(builtins.fetchTree { type = \"git\"; url = file:///no-such-repo; treeHash = \"$treeHash\"; }).outPath" --substituters file://$cacheDir --option substitute true) [ $path2 = $path ] else echo "Git not installed; skipping Git tests"