fix: disable cgo for user billing runtime (#1135)

This commit is contained in:
Lyon
2026-06-13 18:17:53 +08:00
committed by GitHub
parent b8e92f669a
commit 032857361f
@@ -11,6 +11,7 @@ export GOMODCACHE="${GOMODCACHE:-/opt/hwlab-env/go/pkg/mod}"
export GOCACHE="${GOCACHE:-/opt/hwlab-env/go/cache}"
export GOPROXY="${GOPROXY:-https://goproxy.cn,direct}"
export GOTOOLCHAIN="${GOTOOLCHAIN:-local}"
export CGO_ENABLED="${CGO_ENABLED:-0}"
mkdir -p "$GOMODCACHE" "$GOCACHE" /tmp/hwlab-user-billing
go build -trimpath -o /tmp/hwlab-user-billing/hwlab-user-billing ./cmd/hwlab-user-billing