This commit is contained in:
Jeff Carr 2025-09-11 23:10:43 -05:00
parent eda91e3af6
commit e12a1fb496
1 changed files with 0 additions and 30 deletions

30
init.go
View File

@ -106,7 +106,6 @@ func (f *Forge) setenv() {
os.Exit(-1)
}
// f.configDir = os.Getenv("FORGE_CONFIG")
// f.goSrc = os.Getenv("FORGE_GOSRC")
// f.forgeURL = os.Getenv("FORGE_URL")
f.hostname = os.Getenv("HOSTNAME")
if os.Getenv("FORGE_GOWORK") == "true" {
@ -119,31 +118,6 @@ func (f *Forge) setenv() {
})
}
/*
// if the env vars are set, this is probably not a new user
func checkenv() bool {
if os.Getenv("FORGE_CONFIG") != "" {
return true
}
if os.Getenv("FORGE_GOSRC") != "" {
return true
}
if os.Getenv("FORGE_REPOPB") != "" {
return true
}
if os.Getenv("FORGE_URL") != "" {
return true
}
if os.Getenv("FORGE_PATCHDIR") != "" {
return true
}
if os.Getenv("FORGE_VERBOSE") != "" {
return true
}
return false
}
*/
func (f *Forge) GetForgeURL() string {
return f.Config.ForgeURL
}
@ -189,11 +163,7 @@ func (f *Forge) configENV() bool {
changed = true
}
// f.configDir = os.Getenv("FORGE_CONFIG")
// f.goSrc = os.Getenv("FORGE_GOSRC")
// f.forgeURL = os.Getenv("FORGE_URL")
f.Config.ForgeURL = os.Getenv("FORGE_URL")
// f.patchDir = os.Getenv("FORGE_PATCHDIR")
f.hostname = os.Getenv("HOSTNAME")
if os.Getenv("FORGE_GOWORK") == "true" {
f.goWork = true