diff options
| author | Jeff Carr <[email protected]> | 2025-01-30 06:21:15 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-30 06:21:15 -0600 |
| commit | b6a71a515f5bf03b52305c7afdda6e34a780d11c (patch) | |
| tree | 7971ff3bca982a97b0d58703e13d160c43e845a6 | |
| parent | 47ee3f1493f06714ceb0636d8fcd5315a1515ddc (diff) | |
url via ENV
| -rw-r--r-- | init.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
