Skip to content

Commit

Permalink
releaser: Update to Go go1.17.2
Browse files Browse the repository at this point in the history
* This now uses the `golang:1.17.2-buster` Docker image which runs GLIBC 2.28-10.
* Also added a build hook to warn us if this happens again in the future.

Fixes #8955
  • Loading branch information
bep committed Oct 10, 2021
1 parent e6e44b7 commit 625d2c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defaults: &defaults
docker:
- image: bepsays/ci-goreleaser:1.16.7
- image: bepsays/ci-goreleaser:1.17.2
environment:
CGO_ENABLED: "0"

Expand Down
9 changes: 9 additions & 0 deletions goreleaser-hook-post-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Se https://github.com/gohugoio/hugo/issues/8955
objdump -T dist/hugo_extended_linux_linux_amd64/hugo | grep -E -q 'GLIBC_2.2[0-9]'
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo "Found GLIBC_2.2x in Linux binary, this will not work in older Vercel/Netlify images.";
exit -1;
fi
2 changes: 2 additions & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ builds:
- linux
goarch:
- amd64
hooks:
post: ./goreleaser-hook-post-linux.sh
release:
draft: true

Expand Down

0 comments on commit 625d2c2

Please sign in to comment.