add reset-cache

This commit is contained in:
Daylin Morgan 2024-07-07 09:41:30 -05:00
parent 13380ee6d8
commit caaaea00d5
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -228,6 +228,9 @@ func showDryRunResult(nixOutput string, verbose bool) {
func Dry(verbose bool, minimal bool, rest ...string) {
cmd := exec.Command("nix", "build", "--dry-run")
cmd.Args = append(cmd.Args, rest...)
if o.resetCache {
cmd.Args = append(cmd.Args, "--narinfo-cache-positive-ttl", "0")
}
var spinnerMsg string
if minimal {
drvs := systemPathDrvsToBuild()