summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 22:14:57 -0500
committerJeff Carr <[email protected]>2025-09-11 22:14:57 -0500
commiteda91e3af66e4c894f35c13a393a01238464b750 (patch)
tree10135af0d368e2d68d267931673996bd9c8ee850 /build.go
parent6c3162f7ce42a85afcff0b984fe6972f96fd3c8a (diff)
stop using GoSrc()
Diffstat (limited to 'build.go')
-rw-r--r--build.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.go b/build.go
index 58fe7ad..fa04557 100644
--- a/build.go
+++ b/build.go
@@ -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)
}