diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 08:00:38 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 08:00:38 -0500 |
| commit | ac08950abc98ada7e906b19cf48a64c021d52524 (patch) | |
| tree | 3f1b50bb59e78b6af8b3efaa427bcf53fa970e28 /build.go | |
| parent | 50b2a5e3b95638d76e30a7720a4eaac8d443a600 (diff) | |
fixes ConfigSave() for new users
Diffstat (limited to 'build.go')
| -rw-r--r-- | build.go | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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 |
