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

Update 1.17 to 1.17.12

This commit is contained in:
Docker Library Bot 2022-07-12 14:37:39 -07:00
parent f536f595f6
commit 4348478f52
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.17.11
ENV GOLANG_VERSION 1.17.12
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.17.11.src.tar.gz'; \
sha256='ac2649a65944c6a5abe55054000eee3d77196880da36a3555f62e06540e8eb54'; \
url='https://dl.google.com/go/go1.17.12.src.tar.gz'; \
sha256='0d51b5b3f280c0f01f534598c0219db5878f337da6137a9ee698777413607209'; \
# 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.17.11
ENV GOLANG_VERSION 1.17.12
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.17.11.src.tar.gz'; \
sha256='ac2649a65944c6a5abe55054000eee3d77196880da36a3555f62e06540e8eb54'; \
url='https://dl.google.com/go/go1.17.12.src.tar.gz'; \
sha256='0d51b5b3f280c0f01f534598c0219db5878f337da6137a9ee698777413607209'; \
# 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.17.11
ENV GOLANG_VERSION 1.17.12
RUN set -eux; \
arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \
url=; \
case "$arch" in \
'amd64') \
url='https://dl.google.com/go/go1.17.11.linux-amd64.tar.gz'; \
sha256='d69a4fe2694f795d8e525c72b497ededc209cb7185f4c3b62d7a98dd6227b3fe'; \
url='https://dl.google.com/go/go1.17.12.linux-amd64.tar.gz'; \
sha256='6e5203fbdcade4aa4331e441fd2e1db8444681a6a6c72886a37ddd11caa415d4'; \
;; \
'armel') \
export GOARCH='arm' GOARM='5' GOOS='linux'; \
;; \
'armhf') \
url='https://dl.google.com/go/go1.17.11.linux-armv6l.tar.gz'; \
sha256='56fb4a344bfe01427398083b3e82018fcde1f168a94e9df9820010b29e558f27'; \
url='https://dl.google.com/go/go1.17.12.linux-armv6l.tar.gz'; \
sha256='8bab372c85336574f620fc69618a102102196c01ce71911c521570adb5803fdf'; \
;; \
'arm64') \
url='https://dl.google.com/go/go1.17.11.linux-arm64.tar.gz'; \
sha256='adefa7412c6798f9cad02d1e8336fc2242f5bade30c5b32781759181e01961b7'; \
url='https://dl.google.com/go/go1.17.12.linux-arm64.tar.gz'; \
sha256='74a4832d0f150a2d768a6781553494ba84152e854ebef743c4092cd9d1f66a9f'; \
;; \
'i386') \
url='https://dl.google.com/go/go1.17.11.linux-386.tar.gz'; \
sha256='8e43b4c63dda0612df0e1ed3cf8bed566fe8ae88082a46343c40be76a61371e4'; \
url='https://dl.google.com/go/go1.17.12.linux-386.tar.gz'; \
sha256='fbc850c5caa86c1cf422ced6875c25b2a9e93b49ea80273894bdb2617c958d76'; \
;; \
'mips64el') \
export GOARCH='mips64le' GOOS='linux'; \
;; \
'ppc64el') \
url='https://dl.google.com/go/go1.17.11.linux-ppc64le.tar.gz'; \
sha256='013624fc1964d576f314117f2f3b6a6a8f3d32f0ec8f55fa5962664537a34180'; \
url='https://dl.google.com/go/go1.17.12.linux-ppc64le.tar.gz'; \
sha256='da1585fa7c17b54419303b58341739bc30c212f17137f93c80ccaff4003e7c7f'; \
;; \
's390x') \
url='https://dl.google.com/go/go1.17.11.linux-s390x.tar.gz'; \
sha256='0202a0b2ffaa9bdf1f2480789c2009ba6fde597e1f1c6d4cfb9559bb1964a39c'; \
url='https://dl.google.com/go/go1.17.12.linux-s390x.tar.gz'; \
sha256='5f2a6b4a792058ad3ef4cb1444a7800ed327e271d6dd04e01b8244273b67a945'; \
;; \
*) 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.17.11.src.tar.gz'; \
sha256='ac2649a65944c6a5abe55054000eee3d77196880da36a3555f62e06540e8eb54'; \
url='https://dl.google.com/go/go1.17.12.src.tar.gz'; \
sha256='0d51b5b3f280c0f01f534598c0219db5878f337da6137a9ee698777413607209'; \
echo >&2; \
echo >&2 "warning: current architecture ($arch) does not have a compatible Go binary release; will be building from source"; \
echo >&2; \

30
1.17/buster/Dockerfile generated
View File

@ -20,41 +20,41 @@ RUN set -eux; \
ENV PATH /usr/local/go/bin:$PATH
ENV GOLANG_VERSION 1.17.11
ENV GOLANG_VERSION 1.17.12
RUN set -eux; \
arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \
url=; \
case "$arch" in \
'amd64') \
url='https://dl.google.com/go/go1.17.11.linux-amd64.tar.gz'; \
sha256='d69a4fe2694f795d8e525c72b497ededc209cb7185f4c3b62d7a98dd6227b3fe'; \
url='https://dl.google.com/go/go1.17.12.linux-amd64.tar.gz'; \
sha256='6e5203fbdcade4aa4331e441fd2e1db8444681a6a6c72886a37ddd11caa415d4'; \
;; \
'armel') \
export GOARCH='arm' GOARM='5' GOOS='linux'; \
;; \
'armhf') \
url='https://dl.google.com/go/go1.17.11.linux-armv6l.tar.gz'; \
sha256='56fb4a344bfe01427398083b3e82018fcde1f168a94e9df9820010b29e558f27'; \
url='https://dl.google.com/go/go1.17.12.linux-armv6l.tar.gz'; \
sha256='8bab372c85336574f620fc69618a102102196c01ce71911c521570adb5803fdf'; \
;; \
'arm64') \
url='https://dl.google.com/go/go1.17.11.linux-arm64.tar.gz'; \
sha256='adefa7412c6798f9cad02d1e8336fc2242f5bade30c5b32781759181e01961b7'; \
url='https://dl.google.com/go/go1.17.12.linux-arm64.tar.gz'; \
sha256='74a4832d0f150a2d768a6781553494ba84152e854ebef743c4092cd9d1f66a9f'; \
;; \
'i386') \
url='https://dl.google.com/go/go1.17.11.linux-386.tar.gz'; \
sha256='8e43b4c63dda0612df0e1ed3cf8bed566fe8ae88082a46343c40be76a61371e4'; \
url='https://dl.google.com/go/go1.17.12.linux-386.tar.gz'; \
sha256='fbc850c5caa86c1cf422ced6875c25b2a9e93b49ea80273894bdb2617c958d76'; \
;; \
'mips64el') \
export GOARCH='mips64le' GOOS='linux'; \
;; \
'ppc64el') \
url='https://dl.google.com/go/go1.17.11.linux-ppc64le.tar.gz'; \
sha256='013624fc1964d576f314117f2f3b6a6a8f3d32f0ec8f55fa5962664537a34180'; \
url='https://dl.google.com/go/go1.17.12.linux-ppc64le.tar.gz'; \
sha256='da1585fa7c17b54419303b58341739bc30c212f17137f93c80ccaff4003e7c7f'; \
;; \
's390x') \
url='https://dl.google.com/go/go1.17.11.linux-s390x.tar.gz'; \
sha256='0202a0b2ffaa9bdf1f2480789c2009ba6fde597e1f1c6d4cfb9559bb1964a39c'; \
url='https://dl.google.com/go/go1.17.12.linux-s390x.tar.gz'; \
sha256='5f2a6b4a792058ad3ef4cb1444a7800ed327e271d6dd04e01b8244273b67a945'; \
;; \
*) 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.17.11.src.tar.gz'; \
sha256='ac2649a65944c6a5abe55054000eee3d77196880da36a3555f62e06540e8eb54'; \
url='https://dl.google.com/go/go1.17.12.src.tar.gz'; \
sha256='0d51b5b3f280c0f01f534598c0219db5878f337da6137a9ee698777413607209'; \
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.17.11
ENV GOLANG_VERSION 1.17.12
# Docker's Windows path parsing is absolutely *cursed*; please just trust me on this one -Tianon
COPY --from=golang:1.17.11-windowsservercore-1809 ["C:\\\\Program Files\\\\Go","C:\\\\Program Files\\\\Go"]
COPY --from=golang:1.17.12-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.17.11
ENV GOLANG_VERSION 1.17.12
# Docker's Windows path parsing is absolutely *cursed*; please just trust me on this one -Tianon
COPY --from=golang:1.17.11-windowsservercore-ltsc2022 ["C:\\\\Program Files\\\\Go","C:\\\\Program Files\\\\Go"]
COPY --from=golang:1.17.12-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.17.11
ENV GOLANG_VERSION 1.17.12
RUN $url = 'https://dl.google.com/go/go1.17.11.windows-amd64.zip'; \
RUN $url = 'https://dl.google.com/go/go1.17.12.windows-amd64.zip'; \
Write-Host ('Downloading {0} ...' -f $url); \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
Invoke-WebRequest -Uri $url -OutFile 'go.zip'; \
\
$sha256 = '88e60b92069d8e0932ca5d8bd8227d1693b9570fa2afbedadcc680749c428d54'; \
$sha256 = '1bdb0e54eda6d917029f8f2d92c0eb8725aea9b9243dc53c09608eb6dbc26c7a'; \
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.17.11
ENV GOLANG_VERSION 1.17.12
RUN $url = 'https://dl.google.com/go/go1.17.11.windows-amd64.zip'; \
RUN $url = 'https://dl.google.com/go/go1.17.12.windows-amd64.zip'; \
Write-Host ('Downloading {0} ...' -f $url); \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
Invoke-WebRequest -Uri $url -OutFile 'go.zip'; \
\
$sha256 = '88e60b92069d8e0932ca5d8bd8227d1693b9570fa2afbedadcc680749c428d54'; \
$sha256 = '1bdb0e54eda6d917029f8f2d92c0eb8725aea9b9243dc53c09608eb6dbc26c7a'; \
Write-Host ('Verifying sha256 ({0}) ...' -f $sha256); \
if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $sha256) { \
Write-Host 'FAILED!'; \

View File

@ -6,9 +6,9 @@
"GOARCH": "amd64",
"GOOS": "linux"
},
"sha256": "d69a4fe2694f795d8e525c72b497ededc209cb7185f4c3b62d7a98dd6227b3fe",
"sha256": "6e5203fbdcade4aa4331e441fd2e1db8444681a6a6c72886a37ddd11caa415d4",
"supported": true,
"url": "https://dl.google.com/go/go1.17.11.linux-amd64.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.linux-amd64.tar.gz"
},
"arm32v5": {
"env": {
@ -24,9 +24,9 @@
"GOARM": "6",
"GOOS": "linux"
},
"sha256": "56fb4a344bfe01427398083b3e82018fcde1f168a94e9df9820010b29e558f27",
"sha256": "8bab372c85336574f620fc69618a102102196c01ce71911c521570adb5803fdf",
"supported": true,
"url": "https://dl.google.com/go/go1.17.11.linux-armv6l.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.linux-armv6l.tar.gz"
},
"arm32v7": {
"env": {
@ -34,54 +34,54 @@
"GOARM": "7",
"GOOS": "linux"
},
"sha256": "56fb4a344bfe01427398083b3e82018fcde1f168a94e9df9820010b29e558f27",
"sha256": "8bab372c85336574f620fc69618a102102196c01ce71911c521570adb5803fdf",
"supported": true,
"url": "https://dl.google.com/go/go1.17.11.linux-armv6l.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.linux-armv6l.tar.gz"
},
"arm64v8": {
"env": {
"GOARCH": "arm64",
"GOOS": "linux"
},
"sha256": "adefa7412c6798f9cad02d1e8336fc2242f5bade30c5b32781759181e01961b7",
"sha256": "74a4832d0f150a2d768a6781553494ba84152e854ebef743c4092cd9d1f66a9f",
"supported": true,
"url": "https://dl.google.com/go/go1.17.11.linux-arm64.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.linux-arm64.tar.gz"
},
"darwin-amd64": {
"env": {
"GOARCH": "amd64",
"GOOS": "darwin"
},
"sha256": "4f924c534230de8f0e1c7369f611c0310efd21fc2d9438b13bc2703af9dda25a",
"sha256": "8c5812f678c437a79797270da44b33f2c53fd02b8843894063fa830a03a0a366",
"supported": false,
"url": "https://dl.google.com/go/go1.17.11.darwin-amd64.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.darwin-amd64.tar.gz"
},
"darwin-arm64v8": {
"env": {
"GOARCH": "arm64",
"GOOS": "darwin"
},
"sha256": "b8e1ab009c2ff8dea462c7a1263d1f3f38e90ab5262e74c76d70e41a4db320be",
"sha256": "a1a7324c3117565d78703d91e9288b7a7ca44eabb4d03fbd327e43c270b80464",
"supported": false,
"url": "https://dl.google.com/go/go1.17.11.darwin-arm64.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.darwin-arm64.tar.gz"
},
"freebsd-amd64": {
"env": {
"GOARCH": "amd64",
"GOOS": "freebsd"
},
"sha256": "da78bcd5efa24cfa8ca3ccf0d222f7d66b755c4200d404869984ebdcfc7b6aa7",
"sha256": "88088e6465b7d1d3147aff053654594286e35f48af32cbc4387904bd648221f7",
"supported": false,
"url": "https://dl.google.com/go/go1.17.11.freebsd-amd64.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.freebsd-amd64.tar.gz"
},
"freebsd-i386": {
"env": {
"GOARCH": "386",
"GOOS": "freebsd"
},
"sha256": "c2f583384177423186139dab94c718ee43f36a48681873794f23f7f40a0d758c",
"sha256": "9fbb09a0941a92ae42ccbb7f6e7a5ec8c6e40e1f48ab5b0194789cf07178bf0f",
"supported": false,
"url": "https://dl.google.com/go/go1.17.11.freebsd-386.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.freebsd-386.tar.gz"
},
"i386": {
"env": {
@ -89,9 +89,9 @@
"GOARCH": "386",
"GOOS": "linux"
},
"sha256": "8e43b4c63dda0612df0e1ed3cf8bed566fe8ae88082a46343c40be76a61371e4",
"sha256": "fbc850c5caa86c1cf422ced6875c25b2a9e93b49ea80273894bdb2617c958d76",
"supported": true,
"url": "https://dl.google.com/go/go1.17.11.linux-386.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.linux-386.tar.gz"
},
"mips64le": {
"env": {
@ -105,50 +105,50 @@
"GOARCH": "ppc64le",
"GOOS": "linux"
},
"sha256": "013624fc1964d576f314117f2f3b6a6a8f3d32f0ec8f55fa5962664537a34180",
"sha256": "da1585fa7c17b54419303b58341739bc30c212f17137f93c80ccaff4003e7c7f",
"supported": true,
"url": "https://dl.google.com/go/go1.17.11.linux-ppc64le.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.linux-ppc64le.tar.gz"
},
"s390x": {
"env": {
"GOARCH": "s390x",
"GOOS": "linux"
},
"sha256": "0202a0b2ffaa9bdf1f2480789c2009ba6fde597e1f1c6d4cfb9559bb1964a39c",
"sha256": "5f2a6b4a792058ad3ef4cb1444a7800ed327e271d6dd04e01b8244273b67a945",
"supported": true,
"url": "https://dl.google.com/go/go1.17.11.linux-s390x.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.linux-s390x.tar.gz"
},
"src": {
"sha256": "ac2649a65944c6a5abe55054000eee3d77196880da36a3555f62e06540e8eb54",
"sha256": "0d51b5b3f280c0f01f534598c0219db5878f337da6137a9ee698777413607209",
"supported": true,
"url": "https://dl.google.com/go/go1.17.11.src.tar.gz"
"url": "https://dl.google.com/go/go1.17.12.src.tar.gz"
},
"windows-amd64": {
"env": {
"GOARCH": "amd64",
"GOOS": "windows"
},
"sha256": "88e60b92069d8e0932ca5d8bd8227d1693b9570fa2afbedadcc680749c428d54",
"sha256": "1bdb0e54eda6d917029f8f2d92c0eb8725aea9b9243dc53c09608eb6dbc26c7a",
"supported": true,
"url": "https://dl.google.com/go/go1.17.11.windows-amd64.zip"
"url": "https://dl.google.com/go/go1.17.12.windows-amd64.zip"
},
"windows-arm64v8": {
"env": {
"GOARCH": "arm64",
"GOOS": "windows"
},
"sha256": "cd4e0756cce8e3b67273f0c65e2c639d6f134c68a59e9de61ae4cc2ddd8b9d0c",
"sha256": "162e9894d2174ebefb99ca8fdbf47b79489a77b81d3366bfda0bd23c4fcc3734",
"supported": false,
"url": "https://dl.google.com/go/go1.17.11.windows-arm64.zip"
"url": "https://dl.google.com/go/go1.17.12.windows-arm64.zip"
},
"windows-i386": {
"env": {
"GOARCH": "386",
"GOOS": "windows"
},
"sha256": "e297c7ec952f819414c7d53b78ef03aa2392af828949e079ab2a26634c19c46f",
"sha256": "7bccc299108db615208b433fe3eb2fc8500c24ec8c44daa255b19cf0e8396cca",
"supported": false,
"url": "https://dl.google.com/go/go1.17.11.windows-386.zip"
"url": "https://dl.google.com/go/go1.17.12.windows-386.zip"
}
},
"variants": [
@ -161,7 +161,7 @@
"windows/nanoserver-ltsc2022",
"windows/nanoserver-1809"
],
"version": "1.17.11"
"version": "1.17.12"
},
"1.18": {
"arches": {