summaryrefslogtreecommitdiff
path: root/goSrcFind.go
diff options
context:
space:
mode:
Diffstat (limited to 'goSrcFind.go')
-rw-r--r--goSrcFind.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/goSrcFind.go b/goSrcFind.go
index a035205..7393a35 100644
--- a/goSrcFind.go
+++ b/goSrcFind.go
@@ -15,12 +15,13 @@ import (
// look for a go.work file
// otherwise use ~/go/src
-func FindGoSrc() (string, error) {
+func (f *Forge) findGoSrc() (string, error) {
pwd, err := os.Getwd()
if err == nil {
// Check for go.work in the current directory and then move up until root
if pwd, err := digup(pwd); err == nil {
log.Info("using go.work file in directory", pwd)
+ f.goWork = true
// found an existing go.work file
// os.Chdir(pwd)
return pwd, nil