rm GOSRC
This commit is contained in:
parent
eda91e3af6
commit
e12a1fb496
30
init.go
30
init.go
|
@ -106,7 +106,6 @@ func (f *Forge) setenv() {
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
}
|
}
|
||||||
// f.configDir = os.Getenv("FORGE_CONFIG")
|
// f.configDir = os.Getenv("FORGE_CONFIG")
|
||||||
// f.goSrc = os.Getenv("FORGE_GOSRC")
|
|
||||||
// f.forgeURL = os.Getenv("FORGE_URL")
|
// f.forgeURL = os.Getenv("FORGE_URL")
|
||||||
f.hostname = os.Getenv("HOSTNAME")
|
f.hostname = os.Getenv("HOSTNAME")
|
||||||
if os.Getenv("FORGE_GOWORK") == "true" {
|
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 {
|
func (f *Forge) GetForgeURL() string {
|
||||||
return f.Config.ForgeURL
|
return f.Config.ForgeURL
|
||||||
}
|
}
|
||||||
|
@ -189,11 +163,7 @@ func (f *Forge) configENV() bool {
|
||||||
changed = true
|
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.Config.ForgeURL = os.Getenv("FORGE_URL")
|
||||||
// f.patchDir = os.Getenv("FORGE_PATCHDIR")
|
|
||||||
f.hostname = os.Getenv("HOSTNAME")
|
f.hostname = os.Getenv("HOSTNAME")
|
||||||
if os.Getenv("FORGE_GOWORK") == "true" {
|
if os.Getenv("FORGE_GOWORK") == "true" {
|
||||||
f.goWork = true
|
f.goWork = true
|
||||||
|
|
Loading…
Reference in New Issue