summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-01 10:42:32 -0600
committerJeff Carr <[email protected]>2024-12-01 10:42:32 -0600
commit3532a553e420df46288fe9f137c1bd007b37dce5 (patch)
treea896b7af2ce1f390e4a6f8a46dc3b0bdeb9b92fd /main.go
parenta483e69d12f9522e882b700d3ea6940a6fd86bff (diff)
fixes to marshalv0.6.9
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.go b/main.go
index dca3832..baa316e 100644
--- a/main.go
+++ b/main.go
@@ -10,6 +10,7 @@ import (
"go.wit.com/lib/gui/repolist"
"go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/forgepb"
+ "go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
@@ -20,6 +21,7 @@ var BUILDTIME string
var pp *arg.Parser
var forge *forgepb.Forge
var rv *repolist.RepoList
+var argvRepo *gitpb.Repo
func main() {
pp = arg.MustParse(&argv)
@@ -40,8 +42,8 @@ func main() {
// forge.ConfigPrintTable()
os.Setenv("REPO_WORK_PATH", forge.GetGoSrc())
- pb := forge.Repos.FindByGoPath(argv.Repo)
- if pb == nil {
+ argvRepo = forge.Repos.FindByGoPath(argv.Repo)
+ if argvRepo == nil {
log.Info("yep, need to clone", argv.Repo)
} else {
log.Info("already have", argv.Repo)
@@ -49,7 +51,6 @@ func main() {
okExit(argv.Repo)
}
-
// gui is in testing
myGui := gui.New()
// myGui.Default()
@@ -201,6 +202,7 @@ func redoGoModAll() {
func build() {
if argv.Build {
log.Info("need to try to build here")
+ forge.Build(argvRepo, nil)
} else {
log.Info("skipping build")
}