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
commit 18ba88869a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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