Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-10-10 17:51:06 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-10-10 17:53:44 +0300
commit625d2c257a8284515922f2235b9abf9ad28cc907 (patch)
tree1da4fd86704238d243c2cd33b1074bd141d166ca /goreleaser-hook-post-linux.sh
parente6e44b7c41a9b517ffc3775ea0a6aec2b1d4591b (diff)
releaser: Update to Go go1.17.2
* 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
Diffstat (limited to 'goreleaser-hook-post-linux.sh')
-rwxr-xr-xgoreleaser-hook-post-linux.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/goreleaser-hook-post-linux.sh b/goreleaser-hook-post-linux.sh
new file mode 100755
index 000000000..e97e274a8
--- /dev/null
+++ b/goreleaser-hook-post-linux.sh
@@ -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