From 032857361fb42082da97c357c4c5dfd239ebe0c5 Mon Sep 17 00:00:00 2001 From: Lyon <88232613+pikasTech@users.noreply.github.com> Date: Sat, 13 Jun 2026 18:17:53 +0800 Subject: [PATCH] fix: disable cgo for user billing runtime (#1135) --- deploy/runtime/boot/hwlab-user-billing.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/runtime/boot/hwlab-user-billing.sh b/deploy/runtime/boot/hwlab-user-billing.sh index 3cebd2c8..88c5bbac 100644 --- a/deploy/runtime/boot/hwlab-user-billing.sh +++ b/deploy/runtime/boot/hwlab-user-billing.sh @@ -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