Skip to content

Commit

Permalink
fix: fixes #311 - disable cgo in release builds
Browse files Browse the repository at this point in the history
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:
golang/go#58550

We will need to visit per distro builds once we need to re-enable
cgo.
  • Loading branch information
benmcclelland committed Dec 1, 2023
1 parent 29d3bfe commit ea55a48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea55a48

Please sign in to comment.