a verbose option

This commit is contained in:
Jeff Carr 2025-09-03 20:50:44 -05:00
parent fda4b5448b
commit 41851ed584
1 changed files with 12 additions and 0 deletions

View File

@ -29,6 +29,18 @@ import (
// err # if everything goes wrong, the error
//
func ConfigureVerboseENV() error {
err := ConfigureENV()
log.Printf("FORGE_CONFIG = %s\n", os.Getenv("FORGE_CONFIG"))
log.Printf("FORGE_GOSRC = %s\n", os.Getenv("FORGE_GOSRC"))
log.Printf("FORGE_GOWORK = %v\n", os.Getenv("FORGE_GOWORK"))
log.Printf("FORGE_REPOPB = %s\n", os.Getenv("FORGE_REPOPB"))
log.Printf("FORGE_URL = %s\n", os.Getenv("FORGE_URL"))
log.Printf("FORGE_PATCHDIR = %s\n", os.Getenv("FORGE_PATCHDIR"))
log.Printf("HOSTNAME = %s\n", os.Getenv("HOSTNAME"))
return err
}
// set the ENV vars
// always set them to _something_ even when everything seems to be failing
func ConfigureENV() error {