Skip to content

Commit

Permalink
gcroot: fail to KeepGCRoot disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Thømt Ravneberg authored and adamtulinius committed May 8, 2019
1 parent 1815179 commit 97928f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nix/nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,11 @@ func (ctx *NixContext) BuildMachines(deploymentPath string, hosts []Host, nixArg
path.Base(deploymentPath))
if ctx.KeepGCRoot {
if err = os.MkdirAll(path.Dir(resultLinkPath), 755) ; err != nil {
return
ctx.KeepGCRoot = false;
fmt.Fprintf(os.Stderr, "Unable to create GC root, skipping: %s", err)
}
} else {
}
if ! ctx.KeepGCRoot {
// create tmp dir for result link
tmpdir, err := ioutil.TempDir("", "morph-")
if err != nil {
Expand Down

0 comments on commit 97928f9

Please sign in to comment.