diff options
Diffstat (limited to 'build.go')
| -rw-r--r-- | build.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -129,9 +129,9 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err testenv := os.Getenv("GO111MODULE") if testenv == "off" { - log.Info("GO111MODULE=off", "f.goWork =", f.IsGoWork(), "f.gosrc =", f.GetGoSrc()) + log.Info("GO111MODULE=off", "f.goWork =", f.IsGoWork()) } else { - log.Info("GO111MODULE=", testenv, "f.goWork =", f.IsGoWork(), "f.gosrc =", f.GetGoSrc()) + log.Info("GO111MODULE=", testenv, "f.goWork =", f.IsGoWork()) } log.Info("running:", repo.FullPath) log.Info("running:", cmd) @@ -202,10 +202,10 @@ func (f *Forge) runAutogenpb(repo *gitpb.Repo) error { return nil } -// sortcut to find +// used by guireleaser for now func (f *Forge) FindWorkingDirRepo() *gitpb.Repo { pwd, _ := os.Getwd() - basedir := strings.TrimPrefix(pwd, f.GetGoSrc()) + basedir := strings.TrimPrefix(pwd, f.Config.ReposDir) basedir = strings.Trim(basedir, "/") return f.FindByGoPath(basedir) } |
