diff options
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 |
