url via ENV

This commit is contained in:
Jeff Carr 2025-01-30 06:21:15 -06:00
parent 47ee3f1493
commit b6a71a515f
1 changed files with 6 additions and 1 deletions

View File

@ -19,7 +19,6 @@ func Init() *Forge {
f := InitPB()
f.Machine = new(zoopb.Machine)
if err := f.Machine.ConfigLoad(); err != nil {
log.Log(WARN, "zoopb.ConfigLoad() failed", err)
}
@ -117,11 +116,17 @@ func (f *Forge) InitPB() {
} else {
log.Log(INFO, "forgepb.Init() FORGE_GOSRC ", os.Getenv("FORGE_GOSRC"), "(go.work = false)")
}
f.Repos = gitpb.NewRepos()
f.Repos.ConfigLoad()
if f.Repos.HasFullScan {
f.hasFullScan = true
}
if os.Getenv("FORGE_URL") != "" {
forgeURL = os.Getenv("FORGE_URL")
log.Info("got forge url", forgeURL)
}
}
// only init's the protobuf. intended to not scan or change anything