diff --git a/bin/install-go.ps1 b/bin/install-go.ps1 index ddca17c2c..b6ac230e2 100644 --- a/bin/install-go.ps1 +++ b/bin/install-go.ps1 @@ -4,7 +4,7 @@ trap { } [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -Invoke-WebRequest 'https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win64.exe' -OutFile jq.exe +Invoke-WebRequest 'https://github.com/jqlang/jq/releases/download/jq-1.5/jq-win64.exe' -OutFile jq.exe Invoke-WebRequest 'https://golang.org/dl/?mode=json' -OutFile golang.json $GO_VERSION = $(./jq.exe -r 'map(select(.stable and (.version | split(""".""")[0] == """go1"""))) | .[0].files[] | select(.os == """windows""" and .arch == """amd64""" and .kind == """installer""").version' ./golang.json)