fixes to new ENV common code
This commit is contained in:
parent
1970e40d0b
commit
b405cbc7e0
13
main.go
13
main.go
|
@ -28,16 +28,17 @@ func main() {
|
||||||
gui.InitArg()
|
gui.InitArg()
|
||||||
arg.MustParse(&argv)
|
arg.MustParse(&argv)
|
||||||
|
|
||||||
goSrc, hasWork, err := fhelp.DetermineGoPath()
|
if err := fhelp.ConfigureVerboseENV(); err != nil {
|
||||||
if err != nil {
|
|
||||||
badExit(err)
|
badExit(err)
|
||||||
}
|
}
|
||||||
log.Info("GO src path", goSrc, "go.work is", hasWork)
|
me.goSrc = os.Getenv("FORGE_GOSRC")
|
||||||
me.goSrc = goSrc
|
if os.Getenv("FORGE_GOWORK") == "true" {
|
||||||
me.hasWork = hasWork
|
me.hasWork = true
|
||||||
|
}
|
||||||
|
log.Info("GO src path", me.goSrc, "go.work is", me.hasWork)
|
||||||
|
|
||||||
// set the go src path
|
// set the go src path
|
||||||
os.Setenv("REPO_WORK_PATH", goSrc)
|
os.Setenv("REPO_WORK_PATH", me.goSrc)
|
||||||
|
|
||||||
if argv.Forge != "" {
|
if argv.Forge != "" {
|
||||||
me.forge = forgepb.Init()
|
me.forge = forgepb.Init()
|
||||||
|
|
Loading…
Reference in New Issue