mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-09 20:33:15 -06:00
add reset-cache
This commit is contained in:
parent
13380ee6d8
commit
caaaea00d5
1 changed files with 3 additions and 0 deletions
|
@ -228,6 +228,9 @@ func showDryRunResult(nixOutput string, verbose bool) {
|
||||||
func Dry(verbose bool, minimal bool, rest ...string) {
|
func Dry(verbose bool, minimal bool, rest ...string) {
|
||||||
cmd := exec.Command("nix", "build", "--dry-run")
|
cmd := exec.Command("nix", "build", "--dry-run")
|
||||||
cmd.Args = append(cmd.Args, rest...)
|
cmd.Args = append(cmd.Args, rest...)
|
||||||
|
if o.resetCache {
|
||||||
|
cmd.Args = append(cmd.Args, "--narinfo-cache-positive-ttl", "0")
|
||||||
|
}
|
||||||
var spinnerMsg string
|
var spinnerMsg string
|
||||||
if minimal {
|
if minimal {
|
||||||
drvs := systemPathDrvsToBuild()
|
drvs := systemPathDrvsToBuild()
|
||||||
|
|
Loading…
Reference in a new issue