Updated GO Lang for Windows

This commit is contained in:
Alexey Pustovalov 2024-10-22 14:42:34 +09:00
parent 9b27de43d7
commit bb5b5bb6e5

View File

@ -5,7 +5,7 @@ FROM $BUILD_BASE_IMAGE AS builder_base
ARG PCRE2_VERSION=10.43 ARG PCRE2_VERSION=10.43
ARG OPENSSL_VERSION=3.1.5 ARG OPENSSL_VERSION=3.1.5
ARG GOLANG_VERSION=1.22.3 ARG GOLANG_VERSION=1.23.2
ARG SEVEN_ZIP_VERSION=2405 ARG SEVEN_ZIP_VERSION=2405
ARG MSYSTEM=MINGW64 ARG MSYSTEM=MINGW64
@ -83,7 +83,7 @@ RUN Set-Location -Path $env:SystemDrive\.; `
Write-Host ('Downloading {0} ...' -f $env:GOLANG_URL); ` Write-Host ('Downloading {0} ...' -f $env:GOLANG_URL); `
Invoke-WebRequest -OutFile $env:TEMP\go_lang.zip -Uri $env:GOLANG_URL; ` Invoke-WebRequest -OutFile $env:TEMP\go_lang.zip -Uri $env:GOLANG_URL; `
` `
$sha256 = 'cab2af6951a6e2115824263f6df13ff069c47270f5788714fa1d776f7f60cb39'; ` $sha256 = 'bc28fe3002cd65cec65d0e4f6000584dacb8c71bfaff8801dfb532855ca42513'; `
$d_sha256 = (Get-FileHash $env:TEMP\go_lang.zip -Algorithm sha256).Hash; ` $d_sha256 = (Get-FileHash $env:TEMP\go_lang.zip -Algorithm sha256).Hash; `
Write-Host ('Verifying SHA256 ({0}) ...' -f $sha256); ` Write-Host ('Verifying SHA256 ({0}) ...' -f $sha256); `
if ($d_sha256 -ne $sha256) { ` if ($d_sha256 -ne $sha256) { `