summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.go b/init.go
index bb98f40..bab2d6d 100644
--- a/init.go
+++ b/init.go
@@ -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