summaryrefslogtreecommitdiff
path: root/work.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-22 09:18:26 -0500
committerJeff Carr <[email protected]>2025-10-22 09:18:26 -0500
commit98f656afbc699e2c3f6cf47cdb88af31b46134a8 (patch)
tree00162a7a872a76b99a225df84898d5129e2ee0a7 /work.go
parentf945380a98f0b52a4b5d1614295700a92fdd5f2b (diff)
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("")