summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 08:00:38 -0500
committerJeff Carr <[email protected]>2025-10-03 08:00:38 -0500
commitac08950abc98ada7e906b19cf48a64c021d52524 (patch)
tree3f1b50bb59e78b6af8b3efaa427bcf53fa970e28 /build.go
parent50b2a5e3b95638d76e30a7720a4eaac8d443a600 (diff)
fixes ConfigSave() for new users
Diffstat (limited to 'build.go')
-rw-r--r--build.go14
1 files changed, 9 insertions, 5 deletions
diff --git a/build.go b/build.go
index a234065..6042b62 100644
--- a/build.go
+++ b/build.go
@@ -127,13 +127,17 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
ldflags += "-X main.GUIVERSION=" + version + "" // todo: git this from the filesystem
cmd = append(cmd, "-ldflags", ldflags)
- testenv := os.Getenv("GO111MODULE")
- if testenv == "off" {
- log.Info("GO111MODULE=off", "f.goWork =", f.IsGoWork())
+ var buildnotes string
+ if os.Getenv("GO111MODULE") == "off" {
+ buildnotes = "GO111MODULE=off"
} else {
- log.Info("GO111MODULE=", testenv, "f.goWork =", f.IsGoWork())
+ buildnotes = "GO111MODULE"
}
- log.Infof("Run: %s %v\n", repo.FullPath, cmd)
+ if f.IsGoWork() {
+ buildnotes += " go.work=true"
+ }
+ log.Infof("Run: %s %s %v\n", buildnotes, repo.FullPath, cmd)
+
result := repo.RunRealtime(cmd)
if result.Exit != 0 {
// build failed