diff options
| author | Jeff Carr <[email protected]> | 2025-10-22 09:18:26 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-22 09:18:26 -0500 |
| commit | 98f656afbc699e2c3f6cf47cdb88af31b46134a8 (patch) | |
| tree | 00162a7a872a76b99a225df84898d5129e2ee0a7 /work.go | |
| parent | f945380a98f0b52a4b5d1614295700a92fdd5f2b (diff) | |
step1v0.7.112
Diffstat (limited to 'work.go')
| -rw-r--r-- | work.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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("") |
