fix this other shit and improve building

This commit is contained in:
KingKDot
2026-07-12 15:34:31 -05:00
parent a42623aac5
commit 2f1298eead
9 changed files with 127 additions and 12 deletions
@@ -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)
}
}
}