diff options
| author | Jeff Carr <[email protected]> | 2024-12-01 22:23:02 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-01 22:23:02 -0600 |
| commit | dc3fe4bd2e4fff95bd938eada5d71314e124b2c1 (patch) | |
| tree | d408a2f802b18731379a95fa06d5ba372525836b /goSrcFind.go | |
| parent | 9439051fc699d2ce5becc6cc88137d7e689ad95b (diff) | |
auto run autogenpb on Build()
Diffstat (limited to 'goSrcFind.go')
| -rw-r--r-- | goSrcFind.go | 3 |
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 |
