aboutsummaryrefslogtreecommitdiffhomepage
path: root/release-hook-post-linux.sh
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-08-05 16:35:24 +0200
committerBjørn Erik Pedersen <[email protected]>2022-08-28 18:23:01 +0200
commit45e1084ff2d47efe0ae83a984a8723abd135ca48 (patch)
treec226bd12ff7af7a6414dc52fae4a66106792ad8e /release-hook-post-linux.sh
parentc98348416cfa90026ef8fba93d6c0babe0f41d52 (diff)
downloadhugo-45e1084ff2d47efe0ae83a984a8723abd135ca48.tar.gz
hugo-45e1084ff2d47efe0ae83a984a8723abd135ca48.zip
Add linux/arm64 extended to release setup
Fixes #8257
Diffstat (limited to 'release-hook-post-linux.sh')
-rwxr-xr-xrelease-hook-post-linux.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/release-hook-post-linux.sh b/release-hook-post-linux.sh
new file mode 100755
index 000000000..e97e274a8
--- /dev/null
+++ b/release-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