diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 22:14:57 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 22:14:57 -0500 |
| commit | eda91e3af66e4c894f35c13a393a01238464b750 (patch) | |
| tree | 10135af0d368e2d68d267931673996bd9c8ee850 /build.go | |
| parent | 6c3162f7ce42a85afcff0b984fe6972f96fd3c8a (diff) | |
stop using GoSrc()
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) } |
