Merge pull request #722 from ihao/main

fix: add CGO_ENABLED=0 for static build to fix cross-platform GLIBC e…
This commit is contained in:
daming大铭
2026-02-24 19:53:38 +08:00
committed by GitHub
+1 -1
View File
@@ -14,7 +14,7 @@ GO_VERSION=$(shell $(GO) version | awk '{print $$3}')
LDFLAGS=-ldflags "-X main.version=$(VERSION) -X main.gitCommit=$(GIT_COMMIT) -X main.buildTime=$(BUILD_TIME) -X main.goVersion=$(GO_VERSION) -s -w"
# Go variables
GO?=go
GO?=CGO_ENABLED=0 go
GOFLAGS?=-v -tags stdjson
# Golangci-lint