fix this other shit and improve building
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//go:build builder_release
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func sanitizeBuilderEnvironment() {
|
||||
for _, entry := range os.Environ() {
|
||||
name, _, ok := strings.Cut(entry, "=")
|
||||
if ok && strings.HasPrefix(strings.ToUpper(name), "OVERLORD_") {
|
||||
_ = os.Unsetenv(name)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user