Skip to content

Commit

Permalink
hardcode checksum check to unblock 1.22.6 debian release (#1536)
Browse files Browse the repository at this point in the history
  • Loading branch information
vineeth-bandi authored Sep 20, 2024
1 parent 2aaba3c commit 7a3624f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/golang/go/scripts/get_upstream_golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function build::go::download {
local filename="$outputDir/${arch}/$version.${arch/\//-}.tar.gz"
if [ ! -f $filename ]; then
curl -sSLf --retry 5 "https://go.dev/dl/$version.${arch/\//-}.tar.gz" -o $filename --create-dirs
sha256sum=$(curl -sSLf --retry 5 "https://go.dev/dl/?mode=json" | jq -r --arg tar "$version.${arch/\//-}.tar.gz" '.[].files[] | if .filename == $tar then .sha256 else "" end' | xargs)
# TODO: REVERT THIS
sha256sum=999805bed7d9039ec3da1a53bfbcafc13e367da52aa823cb60b68ba22d44c616

if [[ $(sha256sum ${filename} | cut -d ' ' -f1) != "${sha256sum}" ]]; then
echo "CHECKSUMs don't match"
Expand Down

0 comments on commit 7a3624f

Please sign in to comment.