Skip to content

Commit

Permalink
Override substitute option in test
Browse files Browse the repository at this point in the history
This is disabled automatically when we’re offline.
  • Loading branch information
matthewbauer committed Jun 23, 2020
1 parent 5fa33d7 commit 4074142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4074142

Please sign in to comment.