diff options
| author | Jeff Carr <[email protected]> | 2025-09-13 05:32:51 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-13 05:32:51 -0500 |
| commit | f6b19522c611b5fa96c056fb22cb8fe53d521317 (patch) | |
| tree | 0092caa471f5fa69aaccddd6cbf3c151d26854cd | |
| parent | de7b14f3c6cf56baf24a7d66df785dd595d4f85a (diff) | |
deprecate old ENV varv0.0.21
| -rw-r--r-- | configureENV.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/configureENV.go b/configureENV.go index 5b3d51a..b5358ad 100644 --- a/configureENV.go +++ b/configureENV.go @@ -39,7 +39,6 @@ import ( // // This routine ensures the following ENV vars are set: // -// FORGE_CONFIG == where forge's configs are stored (normally ~/.config/forge) // FORGE_REPOSPB == where the repos.pb protobuf cache file is stored (normally ~/.cache/forge/repos.pb) // FORGE_GOSRC == based on the path, what the user probably want for developing in GO (Defaults to ~/go/src) // FORGE_GOWORK == true or false depending on the GOSRC result @@ -59,7 +58,6 @@ func ConfigureENV() error { } func DumpENV(what string) { - log.Printf("%s FORGE_CONFIG = %s\n", what, os.Getenv("FORGE_CONFIG")) log.Printf("%s FORGE_REPOSDIR = %s\n", what, os.Getenv("FORGE_REPOSDIR")) log.Printf("%s FORGE_REPOSPB = %s\n", what, os.Getenv("FORGE_REPOSPB")) log.Printf("%s FORGE_PATCHDIR = %s\n", what, os.Getenv("FORGE_PATCHDIR")) @@ -73,23 +71,6 @@ func DumpENV(what string) { // always set them to _something_ even when everything seems to be failing func doConfigureENV() error { var anyerr error - if os.Getenv("FORGE_CONFIG") != "" { - return nil - } - // setup the forge config dir - if os.Getenv("FORGE_CONFIG") == "" { - homeDir, err := getConfigDir() - if err == nil { - fullpath := filepath.Join(homeDir, ".config/forge") - os.MkdirAll(fullpath, os.ModePerm) - os.Setenv("FORGE_CONFIG", fullpath) - } else { - log.Info("user home dir error", err) - os.Setenv("FORGE_CONFIG", "/tmp") - anyerr = err - } - } - if os.Getenv("FORGE_REPOSDIR") == "" { reposDir, err := getReposDir() if err != nil { |
