diff options
| author | Jeff Carr <[email protected]> | 2025-09-03 20:50:12 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-03 20:50:12 -0500 |
| commit | b405cbc7e001cf0e3683bfc00e16e9d4b998243f (patch) | |
| tree | a25ae209b841d317a34ff5dd0d7687881804759a /main.go | |
| parent | 1970e40d0ba77198e7f592f8df5047c20dbdc383 (diff) | |
fixes to new ENV common code
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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() |
