From ac08950abc98ada7e906b19cf48a64c021d52524 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 3 Oct 2025 08:00:38 -0500 Subject: fixes ConfigSave() for new users --- build.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'build.go') 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 -- cgit v1.2.3