From ea55a488dfdeb7140dbd272ef1879e1855ff17eb Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Thu, 30 Nov 2023 17:09:21 -0800 Subject: [PATCH] fix: fixes #311 - disable cgo in release builds We were getting the following error on el7: $ ./versitygw -h ./versitygw: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./versitygw) ./versitygw: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./versitygw) The temporary fix is to disable cgo in the builds per this issue: https://github.com/golang/go/issues/58550 We will need to visit per distro builds once we need to re-enable cgo. --- .goreleaser.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 037ebdb..2ceda0b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,6 +9,10 @@ builds: # windows is untested, we can start doing windows releases # if someone is interested in taking on testing # - windows + env: + # disable cgo to fix glibc issues: https://github.com/golang/go/issues/58550 + # once we need to enable this, we will need to do per distro releases + - CGO_ENABLED=0 main: ./cmd/versitygw binary: ./cmd/versitygw id: versitygw