mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	* 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
		
			
				
	
	
		
			10 lines
		
	
	
		
			297 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			297 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/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
 |