diff options
| author | Jeff Carr <[email protected]> | 2025-09-03 14:04:29 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-03 14:04:29 -0500 |
| commit | fda4b5448b7c59ac96de118483189d8059b4268d (patch) | |
| tree | 7fa8d8dd8ad7d0cf75a0dd737447395a6eafeb9a /configureENV.go | |
| parent | fc25cd8b055c31b58dd199de7931ed047bbe99aa (diff) | |
fix env PATCHDIR
Diffstat (limited to 'configureENV.go')
| -rw-r--r-- | configureENV.go | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/configureENV.go b/configureENV.go index c0cd1d6..72cc14b 100644 --- a/configureENV.go +++ b/configureENV.go @@ -116,34 +116,12 @@ func ConfigureENV() error { } } if os.Getenv("FORGE_PATCHDIR") == "" { - os.Setenv("FORGE_PATCHDIR", os.Getenv("FORGE_GOSRC")) + os.Setenv("FORGE_PATCHDIR", os.Getenv("FORGE_REPOPB")) } return anyerr } -/* -// look for a go.work file -// otherwise use ~/go/src -func findGoWork() (string, error) { - pwd, err := os.Getwd() - // startpwd, _ := os.Getwd() - if err == nil { - // Check for go.work in the current directory and then move up until root - if pwd, err := digupWorkfile(pwd); err == nil { - // log.Info("digupWorkfile() found an existing go.work file", pwd) - return pwd, nil - } else { - // log.Info("digupWorkfile() go.work file error", err) - return "", err - } - } - // this shouldn't really happen. maybe your working directory got deleted - // log.Info("forge.findGoWork() os.Getwd() was probably deleted", pwd, err) - return "", err -} -*/ - // this is the 'old way" and works fine for me. I use it because I like the ~/go/src directory // because I know exactly what is in it: GO stuff & nothing else func useGoSrc() (string, error) { |
