From fda4b5448b7c59ac96de118483189d8059b4268d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Sep 2025 14:04:29 -0500 Subject: [PATCH] fix env PATCHDIR --- configureENV.go | 24 +----------------------- 1 file changed, 1 insertion(+), 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) {