cmd/nix-tool: disable binary cache for chroot store

This commit is contained in:
2025-07-20 14:16:00 +09:00
parent 5f8b5bcb3d
commit 0d5e7f61fc
2 changed files with 19 additions and 1 deletions

View File

@@ -39,7 +39,14 @@ func main() {
var extraArgs []string
flagStore = strings.TrimSpace(flagStore)
if flagStore != string(os.PathSeparator) {
extraArgs = append(extraArgs, "--store", flagStore)
extraArgs = append(extraArgs,
"--store", flagStore,
// do not use any binary cache
nix.FlagOption, nix.OptionBuildUseSubstitutes, nix.ValueFalse,
nix.FlagOption, nix.OptionSubstituters, "",
nix.FlagOption, nix.OptionTrustedSubstituters, "",
nix.FlagOption, nix.OptionTrustedPublicKeys, "",
)
}
var stderr io.Writer