1
0
mirror of https://github.com/docker-library/golang.git synced 2025-02-06 10:03:14 +00:00

Update 1.19-rc to 1.19rc2

This commit is contained in:
Docker Library Bot 2022-07-12 15:16:17 -07:00
parent ad25ff18a6
commit 93e59e7a57
9 changed files with 77 additions and 77 deletions

View File

@ -15,7 +15,7 @@ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
ENV PATH /usr/local/go/bin:$PATH
ENV GOLANG_VERSION 1.19rc1
ENV GOLANG_VERSION 1.19rc2
RUN set -eux; \
apk add --no-cache --virtual .fetch-deps gnupg; \
@ -49,8 +49,8 @@ RUN set -eux; \
if [ -z "$url" ]; then \
# https://github.com/golang/go/issues/38536#issuecomment-616897960
build=1; \
url='https://dl.google.com/go/go1.19rc1.src.tar.gz'; \
sha256='7fe9c7421018a6f70dc21e7f1c9d192942b7d86f690772b11fdbd8dec5d76bb5'; \
url='https://dl.google.com/go/go1.19rc2.src.tar.gz'; \
sha256='c68d7019a6a0b9852ae0e96d7e7deb772492a23272fd6d13afe05b40c912e51b'; \
# the precompiled binaries published by Go upstream are not compatible with Alpine, so we always build from source here 😅
fi; \
\

View File

@ -15,7 +15,7 @@ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
ENV PATH /usr/local/go/bin:$PATH
ENV GOLANG_VERSION 1.19rc1
ENV GOLANG_VERSION 1.19rc2
RUN set -eux; \
apk add --no-cache --virtual .fetch-deps gnupg; \
@ -49,8 +49,8 @@ RUN set -eux; \
if [ -z "$url" ]; then \
# https://github.com/golang/go/issues/38536#issuecomment-616897960
build=1; \
url='https://dl.google.com/go/go1.19rc1.src.tar.gz'; \
sha256='7fe9c7421018a6f70dc21e7f1c9d192942b7d86f690772b11fdbd8dec5d76bb5'; \
url='https://dl.google.com/go/go1.19rc2.src.tar.gz'; \
sha256='c68d7019a6a0b9852ae0e96d7e7deb772492a23272fd6d13afe05b40c912e51b'; \
# the precompiled binaries published by Go upstream are not compatible with Alpine, so we always build from source here 😅
fi; \
\

View File

@ -20,41 +20,41 @@ RUN set -eux; \
ENV PATH /usr/local/go/bin:$PATH
ENV GOLANG_VERSION 1.19rc1
ENV GOLANG_VERSION 1.19rc2
RUN set -eux; \
arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \
url=; \
case "$arch" in \
'amd64') \
url='https://dl.google.com/go/go1.19rc1.linux-amd64.tar.gz'; \
sha256='6dce5b8784149dc983ad809f6a185356ebdd143aaf3df90a942d29ccd2267303'; \
url='https://dl.google.com/go/go1.19rc2.linux-amd64.tar.gz'; \
sha256='9130c6f8e87ce9bb4813533a68c3f17c82c7307caf8795d3c9427652b77f81aa'; \
;; \
'armel') \
export GOARCH='arm' GOARM='5' GOOS='linux'; \
;; \
'armhf') \
url='https://dl.google.com/go/go1.19rc1.linux-armv6l.tar.gz'; \
sha256='a936c758c37c7dd1e8ac3a8ec88eda142957fd99de259371ec7f2f46cfd2f680'; \
url='https://dl.google.com/go/go1.19rc2.linux-armv6l.tar.gz'; \
sha256='83a956703e69dd0a2ce1d4881e6038fb1a292c535c8b7ae80993b2a15708757d'; \
;; \
'arm64') \
url='https://dl.google.com/go/go1.19rc1.linux-arm64.tar.gz'; \
sha256='c4bd18d8df6d7d4f22d9ae77cebdba02b3671adedc7036961a6617a621f23769'; \
url='https://dl.google.com/go/go1.19rc2.linux-arm64.tar.gz'; \
sha256='9260d3d8db973e2afd0b53f70ebb2f977f3716660de02a0ca4a14667fab2c658'; \
;; \
'i386') \
url='https://dl.google.com/go/go1.19rc1.linux-386.tar.gz'; \
sha256='4f8b030e377141f83b87882272742ad5ab2108b520f95baa7d5ee0ccc732887a'; \
url='https://dl.google.com/go/go1.19rc2.linux-386.tar.gz'; \
sha256='6d7b02ba7c008f38ebb9ab78c137c6b7a2fd7cd6badefcc2a008cc45cc6501a2'; \
;; \
'mips64el') \
export GOARCH='mips64le' GOOS='linux'; \
;; \
'ppc64el') \
url='https://dl.google.com/go/go1.19rc1.linux-ppc64le.tar.gz'; \
sha256='25b77288853c686a4930df1b9568a17ce24e3ddf95c5394d6ee0a6f6d5ed097f'; \
url='https://dl.google.com/go/go1.19rc2.linux-ppc64le.tar.gz'; \
sha256='b4edcd4780018b479220c65a12e149c9b95b2062cbdba47432b09f96b3de37f0'; \
;; \
's390x') \
url='https://dl.google.com/go/go1.19rc1.linux-s390x.tar.gz'; \
sha256='b04b475e47379e1153c5a5f101effc5b77edbe049d9c12d411b03b76727fc3b3'; \
url='https://dl.google.com/go/go1.19rc2.linux-s390x.tar.gz'; \
sha256='a017b5c227bc6cc6e191d66a2e5f00737f1a6163e07416cee39c98af6118fea8'; \
;; \
*) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; \
esac; \
@ -62,8 +62,8 @@ RUN set -eux; \
if [ -z "$url" ]; then \
# https://github.com/golang/go/issues/38536#issuecomment-616897960
build=1; \
url='https://dl.google.com/go/go1.19rc1.src.tar.gz'; \
sha256='7fe9c7421018a6f70dc21e7f1c9d192942b7d86f690772b11fdbd8dec5d76bb5'; \
url='https://dl.google.com/go/go1.19rc2.src.tar.gz'; \
sha256='c68d7019a6a0b9852ae0e96d7e7deb772492a23272fd6d13afe05b40c912e51b'; \
echo >&2; \
echo >&2 "warning: current architecture ($arch) does not have a compatible Go binary release; will be building from source"; \
echo >&2; \

View File

@ -20,41 +20,41 @@ RUN set -eux; \
ENV PATH /usr/local/go/bin:$PATH
ENV GOLANG_VERSION 1.19rc1
ENV GOLANG_VERSION 1.19rc2
RUN set -eux; \
arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \
url=; \
case "$arch" in \
'amd64') \
url='https://dl.google.com/go/go1.19rc1.linux-amd64.tar.gz'; \
sha256='6dce5b8784149dc983ad809f6a185356ebdd143aaf3df90a942d29ccd2267303'; \
url='https://dl.google.com/go/go1.19rc2.linux-amd64.tar.gz'; \
sha256='9130c6f8e87ce9bb4813533a68c3f17c82c7307caf8795d3c9427652b77f81aa'; \
;; \
'armel') \
export GOARCH='arm' GOARM='5' GOOS='linux'; \
;; \
'armhf') \
url='https://dl.google.com/go/go1.19rc1.linux-armv6l.tar.gz'; \
sha256='a936c758c37c7dd1e8ac3a8ec88eda142957fd99de259371ec7f2f46cfd2f680'; \
url='https://dl.google.com/go/go1.19rc2.linux-armv6l.tar.gz'; \
sha256='83a956703e69dd0a2ce1d4881e6038fb1a292c535c8b7ae80993b2a15708757d'; \
;; \
'arm64') \
url='https://dl.google.com/go/go1.19rc1.linux-arm64.tar.gz'; \
sha256='c4bd18d8df6d7d4f22d9ae77cebdba02b3671adedc7036961a6617a621f23769'; \
url='https://dl.google.com/go/go1.19rc2.linux-arm64.tar.gz'; \
sha256='9260d3d8db973e2afd0b53f70ebb2f977f3716660de02a0ca4a14667fab2c658'; \
;; \
'i386') \
url='https://dl.google.com/go/go1.19rc1.linux-386.tar.gz'; \
sha256='4f8b030e377141f83b87882272742ad5ab2108b520f95baa7d5ee0ccc732887a'; \
url='https://dl.google.com/go/go1.19rc2.linux-386.tar.gz'; \
sha256='6d7b02ba7c008f38ebb9ab78c137c6b7a2fd7cd6badefcc2a008cc45cc6501a2'; \
;; \
'mips64el') \
export GOARCH='mips64le' GOOS='linux'; \
;; \
'ppc64el') \
url='https://dl.google.com/go/go1.19rc1.linux-ppc64le.tar.gz'; \
sha256='25b77288853c686a4930df1b9568a17ce24e3ddf95c5394d6ee0a6f6d5ed097f'; \
url='https://dl.google.com/go/go1.19rc2.linux-ppc64le.tar.gz'; \
sha256='b4edcd4780018b479220c65a12e149c9b95b2062cbdba47432b09f96b3de37f0'; \
;; \
's390x') \
url='https://dl.google.com/go/go1.19rc1.linux-s390x.tar.gz'; \
sha256='b04b475e47379e1153c5a5f101effc5b77edbe049d9c12d411b03b76727fc3b3'; \
url='https://dl.google.com/go/go1.19rc2.linux-s390x.tar.gz'; \
sha256='a017b5c227bc6cc6e191d66a2e5f00737f1a6163e07416cee39c98af6118fea8'; \
;; \
*) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; \
esac; \
@ -62,8 +62,8 @@ RUN set -eux; \
if [ -z "$url" ]; then \
# https://github.com/golang/go/issues/38536#issuecomment-616897960
build=1; \
url='https://dl.google.com/go/go1.19rc1.src.tar.gz'; \
sha256='7fe9c7421018a6f70dc21e7f1c9d192942b7d86f690772b11fdbd8dec5d76bb5'; \
url='https://dl.google.com/go/go1.19rc2.src.tar.gz'; \
sha256='c68d7019a6a0b9852ae0e96d7e7deb772492a23272fd6d13afe05b40c912e51b'; \
echo >&2; \
echo >&2 "warning: current architecture ($arch) does not have a compatible Go binary release; will be building from source"; \
echo >&2; \

View File

@ -21,10 +21,10 @@ RUN setx /m PATH "%GOPATH%\bin;C:\Program Files\Go\bin;%PATH%"
USER ContainerUser
# doing this first to share cache across versions more aggressively
ENV GOLANG_VERSION 1.19rc1
ENV GOLANG_VERSION 1.19rc2
# Docker's Windows path parsing is absolutely *cursed*; please just trust me on this one -Tianon
COPY --from=golang:1.19rc1-windowsservercore-1809 ["C:\\\\Program Files\\\\Go","C:\\\\Program Files\\\\Go"]
COPY --from=golang:1.19rc2-windowsservercore-1809 ["C:\\\\Program Files\\\\Go","C:\\\\Program Files\\\\Go"]
RUN go version
WORKDIR $GOPATH

View File

@ -21,10 +21,10 @@ RUN setx /m PATH "%GOPATH%\bin;C:\Program Files\Go\bin;%PATH%"
USER ContainerUser
# doing this first to share cache across versions more aggressively
ENV GOLANG_VERSION 1.19rc1
ENV GOLANG_VERSION 1.19rc2
# Docker's Windows path parsing is absolutely *cursed*; please just trust me on this one -Tianon
COPY --from=golang:1.19rc1-windowsservercore-ltsc2022 ["C:\\\\Program Files\\\\Go","C:\\\\Program Files\\\\Go"]
COPY --from=golang:1.19rc2-windowsservercore-ltsc2022 ["C:\\\\Program Files\\\\Go","C:\\\\Program Files\\\\Go"]
RUN go version
WORKDIR $GOPATH

View File

@ -53,14 +53,14 @@ RUN $newPath = ('{0}\bin;C:\Program Files\Go\bin;{1}' -f $env:GOPATH, $env:PATH)
[Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine);
# doing this first to share cache across versions more aggressively
ENV GOLANG_VERSION 1.19rc1
ENV GOLANG_VERSION 1.19rc2
RUN $url = 'https://dl.google.com/go/go1.19rc1.windows-amd64.zip'; \
RUN $url = 'https://dl.google.com/go/go1.19rc2.windows-amd64.zip'; \
Write-Host ('Downloading {0} ...' -f $url); \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
Invoke-WebRequest -Uri $url -OutFile 'go.zip'; \
\
$sha256 = 'f7cfb2bfa41a77e934c415ebf785edee4b16df44835d4a48f07aa77187c895ef'; \
$sha256 = 'aab62ab3814bd8f2250f081b696e71f7fe47cc39b222751ccd5d2628cc64c7ca'; \
Write-Host ('Verifying sha256 ({0}) ...' -f $sha256); \
if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $sha256) { \
Write-Host 'FAILED!'; \

View File

@ -53,14 +53,14 @@ RUN $newPath = ('{0}\bin;C:\Program Files\Go\bin;{1}' -f $env:GOPATH, $env:PATH)
[Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine);
# doing this first to share cache across versions more aggressively
ENV GOLANG_VERSION 1.19rc1
ENV GOLANG_VERSION 1.19rc2
RUN $url = 'https://dl.google.com/go/go1.19rc1.windows-amd64.zip'; \
RUN $url = 'https://dl.google.com/go/go1.19rc2.windows-amd64.zip'; \
Write-Host ('Downloading {0} ...' -f $url); \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
Invoke-WebRequest -Uri $url -OutFile 'go.zip'; \
\
$sha256 = 'f7cfb2bfa41a77e934c415ebf785edee4b16df44835d4a48f07aa77187c895ef'; \
$sha256 = 'aab62ab3814bd8f2250f081b696e71f7fe47cc39b222751ccd5d2628cc64c7ca'; \
Write-Host ('Verifying sha256 ({0}) ...' -f $sha256); \
if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $sha256) { \
Write-Host 'FAILED!'; \

View File

@ -336,9 +336,9 @@
"GOARCH": "amd64",
"GOOS": "linux"
},
"sha256": "6dce5b8784149dc983ad809f6a185356ebdd143aaf3df90a942d29ccd2267303",
"sha256": "9130c6f8e87ce9bb4813533a68c3f17c82c7307caf8795d3c9427652b77f81aa",
"supported": true,
"url": "https://dl.google.com/go/go1.19rc1.linux-amd64.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.linux-amd64.tar.gz"
},
"arm32v5": {
"env": {
@ -354,9 +354,9 @@
"GOARM": "6",
"GOOS": "linux"
},
"sha256": "a936c758c37c7dd1e8ac3a8ec88eda142957fd99de259371ec7f2f46cfd2f680",
"sha256": "83a956703e69dd0a2ce1d4881e6038fb1a292c535c8b7ae80993b2a15708757d",
"supported": true,
"url": "https://dl.google.com/go/go1.19rc1.linux-armv6l.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.linux-armv6l.tar.gz"
},
"arm32v7": {
"env": {
@ -364,54 +364,54 @@
"GOARM": "7",
"GOOS": "linux"
},
"sha256": "a936c758c37c7dd1e8ac3a8ec88eda142957fd99de259371ec7f2f46cfd2f680",
"sha256": "83a956703e69dd0a2ce1d4881e6038fb1a292c535c8b7ae80993b2a15708757d",
"supported": true,
"url": "https://dl.google.com/go/go1.19rc1.linux-armv6l.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.linux-armv6l.tar.gz"
},
"arm64v8": {
"env": {
"GOARCH": "arm64",
"GOOS": "linux"
},
"sha256": "c4bd18d8df6d7d4f22d9ae77cebdba02b3671adedc7036961a6617a621f23769",
"sha256": "9260d3d8db973e2afd0b53f70ebb2f977f3716660de02a0ca4a14667fab2c658",
"supported": true,
"url": "https://dl.google.com/go/go1.19rc1.linux-arm64.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.linux-arm64.tar.gz"
},
"darwin-amd64": {
"env": {
"GOARCH": "amd64",
"GOOS": "darwin"
},
"sha256": "7a91f382881f9f9b0a8b308c03cedef904021371dfc3fca08710d48d21190bc3",
"sha256": "e85f22cecec124ac8eff87be0ce8db0ed74b74aa4f3458681ea3044e9e10c411",
"supported": false,
"url": "https://dl.google.com/go/go1.19rc1.darwin-amd64.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.darwin-amd64.tar.gz"
},
"darwin-arm64v8": {
"env": {
"GOARCH": "arm64",
"GOOS": "darwin"
},
"sha256": "7b637b27b5e4c121dfbe37c932ac3595874866bb0ae7472549fbf8207eebc7f9",
"sha256": "7a097fcd5ff9a9ea7d4585e5d54df51636fb78af9cd323e807d9b3c9db68c761",
"supported": false,
"url": "https://dl.google.com/go/go1.19rc1.darwin-arm64.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.darwin-arm64.tar.gz"
},
"freebsd-amd64": {
"env": {
"GOARCH": "amd64",
"GOOS": "freebsd"
},
"sha256": "af314f0f65a79e02a25c21f36baca4976733cfec89db2c178055e4a47f65e95b",
"sha256": "ee55a8a0d68b5b7f8f1584e15bda08615a091cb2d9ce1ec10d04256b11f95237",
"supported": false,
"url": "https://dl.google.com/go/go1.19rc1.freebsd-amd64.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.freebsd-amd64.tar.gz"
},
"freebsd-i386": {
"env": {
"GOARCH": "386",
"GOOS": "freebsd"
},
"sha256": "bafa59817cf2dc7702d9fcd00a5b0a3b83a8d19b42cef3430a926b77c6f28d48",
"sha256": "33c64db1307749641a352a9ed862b8f392f817f9ca91b7599cfa551b7251840d",
"supported": false,
"url": "https://dl.google.com/go/go1.19rc1.freebsd-386.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.freebsd-386.tar.gz"
},
"i386": {
"env": {
@ -419,9 +419,9 @@
"GOARCH": "386",
"GOOS": "linux"
},
"sha256": "4f8b030e377141f83b87882272742ad5ab2108b520f95baa7d5ee0ccc732887a",
"sha256": "6d7b02ba7c008f38ebb9ab78c137c6b7a2fd7cd6badefcc2a008cc45cc6501a2",
"supported": true,
"url": "https://dl.google.com/go/go1.19rc1.linux-386.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.linux-386.tar.gz"
},
"mips64le": {
"env": {
@ -435,50 +435,50 @@
"GOARCH": "ppc64le",
"GOOS": "linux"
},
"sha256": "25b77288853c686a4930df1b9568a17ce24e3ddf95c5394d6ee0a6f6d5ed097f",
"sha256": "b4edcd4780018b479220c65a12e149c9b95b2062cbdba47432b09f96b3de37f0",
"supported": true,
"url": "https://dl.google.com/go/go1.19rc1.linux-ppc64le.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.linux-ppc64le.tar.gz"
},
"s390x": {
"env": {
"GOARCH": "s390x",
"GOOS": "linux"
},
"sha256": "b04b475e47379e1153c5a5f101effc5b77edbe049d9c12d411b03b76727fc3b3",
"sha256": "a017b5c227bc6cc6e191d66a2e5f00737f1a6163e07416cee39c98af6118fea8",
"supported": true,
"url": "https://dl.google.com/go/go1.19rc1.linux-s390x.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.linux-s390x.tar.gz"
},
"src": {
"sha256": "7fe9c7421018a6f70dc21e7f1c9d192942b7d86f690772b11fdbd8dec5d76bb5",
"sha256": "c68d7019a6a0b9852ae0e96d7e7deb772492a23272fd6d13afe05b40c912e51b",
"supported": true,
"url": "https://dl.google.com/go/go1.19rc1.src.tar.gz"
"url": "https://dl.google.com/go/go1.19rc2.src.tar.gz"
},
"windows-amd64": {
"env": {
"GOARCH": "amd64",
"GOOS": "windows"
},
"sha256": "f7cfb2bfa41a77e934c415ebf785edee4b16df44835d4a48f07aa77187c895ef",
"sha256": "aab62ab3814bd8f2250f081b696e71f7fe47cc39b222751ccd5d2628cc64c7ca",
"supported": true,
"url": "https://dl.google.com/go/go1.19rc1.windows-amd64.zip"
"url": "https://dl.google.com/go/go1.19rc2.windows-amd64.zip"
},
"windows-arm64v8": {
"env": {
"GOARCH": "arm64",
"GOOS": "windows"
},
"sha256": "7142168f2e2c03557651de7f1e12932348a16f107904938785975fffdf765366",
"sha256": "099f6bf478cea8df1cfc5267da25dd61f663284e12205f286ca9001791d7fd5f",
"supported": false,
"url": "https://dl.google.com/go/go1.19rc1.windows-arm64.zip"
"url": "https://dl.google.com/go/go1.19rc2.windows-arm64.zip"
},
"windows-i386": {
"env": {
"GOARCH": "386",
"GOOS": "windows"
},
"sha256": "bc83e94a7224f8097c07d6441c466ca12bef3f89566d8405c9447e72f37bf061",
"sha256": "7d990fc9f40578a653e489296294793727e5a2c36b1d579e0c0dff92539f6dd1",
"supported": false,
"url": "https://dl.google.com/go/go1.19rc1.windows-386.zip"
"url": "https://dl.google.com/go/go1.19rc2.windows-386.zip"
}
},
"variants": [
@ -491,6 +491,6 @@
"windows/nanoserver-ltsc2022",
"windows/nanoserver-1809"
],
"version": "1.19rc1"
"version": "1.19rc2"
}
}