summaryrefslogtreecommitdiff
path: root/work.go
diff options
context:
space:
mode:
Diffstat (limited to 'work.go')
-rw-r--r--work.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/work.go b/work.go
index fd8baeb..2983aae 100644
--- a/work.go
+++ b/work.go
@@ -1,6 +1,7 @@
package main
import (
+ "go.wit.com/lib/ENV"
"go.wit.com/lib/gui/shell"
"go.wit.com/log"
)
@@ -10,10 +11,10 @@ func autoWork() {
if !argv.AutoWork {
return
}
- log.Info("About to re-create", me.forge.Config.ReposDir+"/go.work")
- shell.PathRun(me.forge.Config.ReposDir, []string{"mv", "go.work", "go.work.last"})
+ log.Info("About to re-create", ENV.Get("gopath")+"/go.work")
+ shell.PathRun(ENV.Get("gopath"), []string{"mv", "go.work", "go.work.last"})
me.forge.MakeGoWork()
- shell.PathRun(me.forge.Config.ReposDir, []string{"go", "work", "use"})
+ shell.PathRun(ENV.Get("gopath"), []string{"go", "work", "use"})
log.Info("")
log.Info("original go.work file saved as go.work.last")
log.Info("")