goreleaser-hook-post-linux.sh (297B)
1 #!/bin/bash 2 3 # Se https://github.com/gohugoio/hugo/issues/8955 4 objdump -T dist/hugo_extended_linux_linux_amd64/hugo | grep -E -q 'GLIBC_2.2[0-9]' 5 RESULT=$? 6 if [ $RESULT -eq 0 ]; then 7 echo "Found GLIBC_2.2x in Linux binary, this will not work in older Vercel/Netlify images."; 8 exit -1; 9 fi