diff --git a/main.go b/main.go index eae053b..b044ccf 100644 --- a/main.go +++ b/main.go @@ -28,16 +28,17 @@ func main() { gui.InitArg() arg.MustParse(&argv) - goSrc, hasWork, err := fhelp.DetermineGoPath() - if err != nil { + if err := fhelp.ConfigureVerboseENV(); err != nil { badExit(err) } - log.Info("GO src path", goSrc, "go.work is", hasWork) - me.goSrc = goSrc - me.hasWork = hasWork + me.goSrc = os.Getenv("FORGE_GOSRC") + if os.Getenv("FORGE_GOWORK") == "true" { + me.hasWork = true + } + log.Info("GO src path", me.goSrc, "go.work is", me.hasWork) // set the go src path - os.Setenv("REPO_WORK_PATH", goSrc) + os.Setenv("REPO_WORK_PATH", me.goSrc) if argv.Forge != "" { me.forge = forgepb.Init()