From b36af443fb19f5d7d036e8bc787e3e40862cd550 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 16 Feb 2021 12:00:26 -0800 Subject: [PATCH] Update to 1.16 (GA), drop 1.14 --- 1.14/alpine3.11/Dockerfile | 99 -------------- 1.14/alpine3.12/Dockerfile | 99 -------------- 1.14/alpine3.13/Dockerfile | 99 -------------- 1.14/buster/Dockerfile | 122 ------------------ 1.14/stretch/Dockerfile | 122 ------------------ .../windows/windowsservercore-1809/Dockerfile | 79 ------------ 1.16-rc/windows/nanoserver-1809/Dockerfile | 28 ---- .../windowsservercore-ltsc2016/Dockerfile | 79 ------------ {1.16-rc => 1.16}/alpine3.12/Dockerfile | 6 +- {1.16-rc => 1.16}/alpine3.13/Dockerfile | 6 +- {1.16-rc => 1.16}/buster/Dockerfile | 30 ++--- .../windows/nanoserver-1809/Dockerfile | 4 +- .../windows/windowsservercore-1809/Dockerfile | 6 +- .../windowsservercore-ltsc2016/Dockerfile | 6 +- generate-stackbrew-library.sh | 4 +- versions.json | 91 +++---------- 16 files changed, 49 insertions(+), 831 deletions(-) delete mode 100644 1.14/alpine3.11/Dockerfile delete mode 100644 1.14/alpine3.12/Dockerfile delete mode 100644 1.14/alpine3.13/Dockerfile delete mode 100644 1.14/buster/Dockerfile delete mode 100644 1.14/stretch/Dockerfile delete mode 100644 1.14/windows/windowsservercore-1809/Dockerfile delete mode 100644 1.16-rc/windows/nanoserver-1809/Dockerfile delete mode 100644 1.16-rc/windows/windowsservercore-ltsc2016/Dockerfile rename {1.16-rc => 1.16}/alpine3.12/Dockerfile (94%) rename {1.16-rc => 1.16}/alpine3.13/Dockerfile (94%) rename {1.16-rc => 1.16}/buster/Dockerfile (71%) rename {1.14 => 1.16}/windows/nanoserver-1809/Dockerfile (88%) rename {1.16-rc => 1.16}/windows/windowsservercore-1809/Dockerfile (94%) rename {1.14 => 1.16}/windows/windowsservercore-ltsc2016/Dockerfile (94%) diff --git a/1.14/alpine3.11/Dockerfile b/1.14/alpine3.11/Dockerfile deleted file mode 100644 index e61b8724..00000000 --- a/1.14/alpine3.11/Dockerfile +++ /dev/null @@ -1,99 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM alpine:3.11 - -RUN apk add --no-cache \ - ca-certificates - -# set up nsswitch.conf for Go's "netgo" implementation -# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 -# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf -RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf - -ENV PATH /usr/local/go/bin:$PATH - -ENV GOLANG_VERSION 1.14.15 - -RUN set -eux; \ - apk add --no-cache --virtual .build-deps \ - bash \ - gcc \ - gnupg \ - go \ - musl-dev \ - openssl \ - ; \ - export \ -# set GOROOT_BOOTSTRAP such that we can actually build Go - GOROOT_BOOTSTRAP="$(go env GOROOT)" \ -# ... and set "cross-building" related vars to the installed system's values so that we create a build targeting the proper arch -# (for example, if our build host is GOARCH=amd64, but our build env/image is GOARCH=386, our build needs GOARCH=386) - GOOS="$(go env GOOS)" \ - GOARCH="$(go env GOARCH)" \ - GOHOSTOS="$(go env GOHOSTOS)" \ - GOHOSTARCH="$(go env GOHOSTARCH)" \ - ; \ -# also explicitly set GO386 and GOARM if appropriate -# https://github.com/docker-library/golang/issues/184 - apkArch="$(apk --print-arch)"; \ - case "$apkArch" in \ - armhf) export GOARM='6' ;; \ - armv7) export GOARM='7' ;; \ - x86) export GO386='387' ;; \ - esac; \ - \ -# https://github.com/golang/go/issues/38536#issuecomment-616897960 - url='https://storage.googleapis.com/golang/go1.14.15.src.tar.gz'; \ - sha256='7ed13b2209e54a451835997f78035530b331c5b6943cdcd68a3d815fdc009149'; \ - \ - wget -O go.tgz.asc "$url.asc"; \ - wget -O go.tgz "$url"; \ - echo "$sha256 *go.tgz" | sha256sum -c -; \ - \ -# https://github.com/golang/go/issues/14739#issuecomment-324767697 - export GNUPGHOME="$(mktemp -d)"; \ -# https://www.google.com/linuxrepositories/ - gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; \ - gpg --batch --verify go.tgz.asc go.tgz; \ - gpgconf --kill all; \ - rm -rf "$GNUPGHOME" go.tgz.asc; \ - \ - tar -C /usr/local -xzf go.tgz; \ - rm go.tgz; \ - \ - goEnv="$(go env | sed -rn -e '/^GO(OS|ARCH|ARM|386)=/s//export \0/p')"; \ - eval "$goEnv"; \ - [ -n "$GOOS" ]; \ - [ -n "$GOARCH" ]; \ - ( \ - cd /usr/local/go/src; \ - ./make.bash; \ - ); \ - \ - apk del --no-network .build-deps; \ - \ -# pre-compile the standard library, just like the official binary release tarballs do - go install std; \ -# go install: -race is only supported on linux/amd64, linux/ppc64le, linux/arm64, freebsd/amd64, netbsd/amd64, darwin/amd64 and windows/amd64 -# go install -race std; \ - \ -# remove a few intermediate / bootstrapping files the official binary release tarballs do not contain - rm -rf \ - /usr/local/go/pkg/*/cmd \ - /usr/local/go/pkg/bootstrap \ - /usr/local/go/pkg/obj \ - /usr/local/go/pkg/tool/*/api \ - /usr/local/go/pkg/tool/*/go_bootstrap \ - /usr/local/go/src/cmd/dist/dist \ - ; \ - \ - go version - -ENV GOPATH /go -ENV PATH $GOPATH/bin:$PATH -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" -WORKDIR $GOPATH diff --git a/1.14/alpine3.12/Dockerfile b/1.14/alpine3.12/Dockerfile deleted file mode 100644 index 91cbbdc6..00000000 --- a/1.14/alpine3.12/Dockerfile +++ /dev/null @@ -1,99 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM alpine:3.12 - -RUN apk add --no-cache \ - ca-certificates - -# set up nsswitch.conf for Go's "netgo" implementation -# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 -# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf -RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf - -ENV PATH /usr/local/go/bin:$PATH - -ENV GOLANG_VERSION 1.14.15 - -RUN set -eux; \ - apk add --no-cache --virtual .build-deps \ - bash \ - gcc \ - gnupg \ - go \ - musl-dev \ - openssl \ - ; \ - export \ -# set GOROOT_BOOTSTRAP such that we can actually build Go - GOROOT_BOOTSTRAP="$(go env GOROOT)" \ -# ... and set "cross-building" related vars to the installed system's values so that we create a build targeting the proper arch -# (for example, if our build host is GOARCH=amd64, but our build env/image is GOARCH=386, our build needs GOARCH=386) - GOOS="$(go env GOOS)" \ - GOARCH="$(go env GOARCH)" \ - GOHOSTOS="$(go env GOHOSTOS)" \ - GOHOSTARCH="$(go env GOHOSTARCH)" \ - ; \ -# also explicitly set GO386 and GOARM if appropriate -# https://github.com/docker-library/golang/issues/184 - apkArch="$(apk --print-arch)"; \ - case "$apkArch" in \ - armhf) export GOARM='6' ;; \ - armv7) export GOARM='7' ;; \ - x86) export GO386='387' ;; \ - esac; \ - \ -# https://github.com/golang/go/issues/38536#issuecomment-616897960 - url='https://storage.googleapis.com/golang/go1.14.15.src.tar.gz'; \ - sha256='7ed13b2209e54a451835997f78035530b331c5b6943cdcd68a3d815fdc009149'; \ - \ - wget -O go.tgz.asc "$url.asc"; \ - wget -O go.tgz "$url"; \ - echo "$sha256 *go.tgz" | sha256sum -c -; \ - \ -# https://github.com/golang/go/issues/14739#issuecomment-324767697 - export GNUPGHOME="$(mktemp -d)"; \ -# https://www.google.com/linuxrepositories/ - gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; \ - gpg --batch --verify go.tgz.asc go.tgz; \ - gpgconf --kill all; \ - rm -rf "$GNUPGHOME" go.tgz.asc; \ - \ - tar -C /usr/local -xzf go.tgz; \ - rm go.tgz; \ - \ - goEnv="$(go env | sed -rn -e '/^GO(OS|ARCH|ARM|386)=/s//export \0/p')"; \ - eval "$goEnv"; \ - [ -n "$GOOS" ]; \ - [ -n "$GOARCH" ]; \ - ( \ - cd /usr/local/go/src; \ - ./make.bash; \ - ); \ - \ - apk del --no-network .build-deps; \ - \ -# pre-compile the standard library, just like the official binary release tarballs do - go install std; \ -# go install: -race is only supported on linux/amd64, linux/ppc64le, linux/arm64, freebsd/amd64, netbsd/amd64, darwin/amd64 and windows/amd64 -# go install -race std; \ - \ -# remove a few intermediate / bootstrapping files the official binary release tarballs do not contain - rm -rf \ - /usr/local/go/pkg/*/cmd \ - /usr/local/go/pkg/bootstrap \ - /usr/local/go/pkg/obj \ - /usr/local/go/pkg/tool/*/api \ - /usr/local/go/pkg/tool/*/go_bootstrap \ - /usr/local/go/src/cmd/dist/dist \ - ; \ - \ - go version - -ENV GOPATH /go -ENV PATH $GOPATH/bin:$PATH -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" -WORKDIR $GOPATH diff --git a/1.14/alpine3.13/Dockerfile b/1.14/alpine3.13/Dockerfile deleted file mode 100644 index e5716c29..00000000 --- a/1.14/alpine3.13/Dockerfile +++ /dev/null @@ -1,99 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM alpine:3.13 - -RUN apk add --no-cache \ - ca-certificates - -# set up nsswitch.conf for Go's "netgo" implementation -# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 -# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf -RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf - -ENV PATH /usr/local/go/bin:$PATH - -ENV GOLANG_VERSION 1.14.15 - -RUN set -eux; \ - apk add --no-cache --virtual .build-deps \ - bash \ - gcc \ - gnupg \ - go \ - musl-dev \ - openssl \ - ; \ - export \ -# set GOROOT_BOOTSTRAP such that we can actually build Go - GOROOT_BOOTSTRAP="$(go env GOROOT)" \ -# ... and set "cross-building" related vars to the installed system's values so that we create a build targeting the proper arch -# (for example, if our build host is GOARCH=amd64, but our build env/image is GOARCH=386, our build needs GOARCH=386) - GOOS="$(go env GOOS)" \ - GOARCH="$(go env GOARCH)" \ - GOHOSTOS="$(go env GOHOSTOS)" \ - GOHOSTARCH="$(go env GOHOSTARCH)" \ - ; \ -# also explicitly set GO386 and GOARM if appropriate -# https://github.com/docker-library/golang/issues/184 - apkArch="$(apk --print-arch)"; \ - case "$apkArch" in \ - armhf) export GOARM='6' ;; \ - armv7) export GOARM='7' ;; \ - x86) export GO386='387' ;; \ - esac; \ - \ -# https://github.com/golang/go/issues/38536#issuecomment-616897960 - url='https://storage.googleapis.com/golang/go1.14.15.src.tar.gz'; \ - sha256='7ed13b2209e54a451835997f78035530b331c5b6943cdcd68a3d815fdc009149'; \ - \ - wget -O go.tgz.asc "$url.asc"; \ - wget -O go.tgz "$url"; \ - echo "$sha256 *go.tgz" | sha256sum -c -; \ - \ -# https://github.com/golang/go/issues/14739#issuecomment-324767697 - export GNUPGHOME="$(mktemp -d)"; \ -# https://www.google.com/linuxrepositories/ - gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; \ - gpg --batch --verify go.tgz.asc go.tgz; \ - gpgconf --kill all; \ - rm -rf "$GNUPGHOME" go.tgz.asc; \ - \ - tar -C /usr/local -xzf go.tgz; \ - rm go.tgz; \ - \ - goEnv="$(go env | sed -rn -e '/^GO(OS|ARCH|ARM|386)=/s//export \0/p')"; \ - eval "$goEnv"; \ - [ -n "$GOOS" ]; \ - [ -n "$GOARCH" ]; \ - ( \ - cd /usr/local/go/src; \ - ./make.bash; \ - ); \ - \ - apk del --no-network .build-deps; \ - \ -# pre-compile the standard library, just like the official binary release tarballs do - go install std; \ -# go install: -race is only supported on linux/amd64, linux/ppc64le, linux/arm64, freebsd/amd64, netbsd/amd64, darwin/amd64 and windows/amd64 -# go install -race std; \ - \ -# remove a few intermediate / bootstrapping files the official binary release tarballs do not contain - rm -rf \ - /usr/local/go/pkg/*/cmd \ - /usr/local/go/pkg/bootstrap \ - /usr/local/go/pkg/obj \ - /usr/local/go/pkg/tool/*/api \ - /usr/local/go/pkg/tool/*/go_bootstrap \ - /usr/local/go/src/cmd/dist/dist \ - ; \ - \ - go version - -ENV GOPATH /go -ENV PATH $GOPATH/bin:$PATH -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" -WORKDIR $GOPATH diff --git a/1.14/buster/Dockerfile b/1.14/buster/Dockerfile deleted file mode 100644 index 8a35071b..00000000 --- a/1.14/buster/Dockerfile +++ /dev/null @@ -1,122 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM buildpack-deps:buster-scm - -# gcc for cgo -RUN apt-get update && apt-get install -y --no-install-recommends \ - g++ \ - gcc \ - libc6-dev \ - make \ - pkg-config \ - && rm -rf /var/lib/apt/lists/* - -ENV PATH /usr/local/go/bin:$PATH - -ENV GOLANG_VERSION 1.14.15 - -RUN set -eux; \ - \ - dpkgArch="$(dpkg --print-architecture)"; \ - case "${dpkgArch##*-}" in \ - 'amd64') \ - arch='linux-amd64'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-amd64.tar.gz'; \ - sha256='c64a57b374a81f7cf1408d2c410a28c6f142414f1ffa9d1062de1d653b0ae0d6'; \ - ;; \ - 'armhf') \ - arch='linux-armv6l'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-armv6l.tar.gz'; \ - sha256='a63960d9b9c14954e299ffe060c0574ffb91ab810837da5941853b664d0652da'; \ - ;; \ - 'arm64') \ - arch='linux-arm64'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-arm64.tar.gz'; \ - sha256='4d964166a189c22032521c63935437c304bb7f01673b196898cff525897a1c27'; \ - ;; \ - 'i386') \ - arch='linux-386'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-386.tar.gz'; \ - sha256='cab962eaf954378bbb5b24f703baf3b471e9690a109082dd688593fbb6f9008e'; \ - ;; \ - 'ppc64el') \ - arch='linux-ppc64le'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-ppc64le.tar.gz'; \ - sha256='64d82004270bcd00948dbed9f1a123ef844ceb7633e6a87a5ca7ef8bdf59cfc1'; \ - ;; \ - 's390x') \ - arch='linux-s390x'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-s390x.tar.gz'; \ - sha256='8e121c947ec531628d37ad0292623f22c8f9fecac6067192b5cce34b36cedd79'; \ - ;; \ - *) \ -# https://github.com/golang/go/issues/38536#issuecomment-616897960 - arch='src'; \ - url='https://storage.googleapis.com/golang/go1.14.15.src.tar.gz'; \ - sha256='7ed13b2209e54a451835997f78035530b331c5b6943cdcd68a3d815fdc009149'; \ - echo >&2; \ - echo >&2 "warning: current architecture ($dpkgArch) does not have a corresponding Go binary release; will be building from source"; \ - echo >&2; \ - ;; \ - esac; \ - \ - wget -O go.tgz.asc "$url.asc" --progress=dot:giga; \ - wget -O go.tgz "$url" --progress=dot:giga; \ - echo "$sha256 *go.tgz" | sha256sum --strict --check -; \ - \ -# https://github.com/golang/go/issues/14739#issuecomment-324767697 - export GNUPGHOME="$(mktemp -d)"; \ -# https://www.google.com/linuxrepositories/ - gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; \ - gpg --batch --verify go.tgz.asc go.tgz; \ - gpgconf --kill all; \ - rm -rf "$GNUPGHOME" go.tgz.asc; \ - \ - tar -C /usr/local -xzf go.tgz; \ - rm go.tgz; \ - \ - if [ "$arch" = 'src' ]; then \ - savedAptMark="$(apt-mark showmanual)"; \ - apt-get update; \ - apt-get install -y --no-install-recommends golang-go; \ - \ - goEnv="$(go env | sed -rn -e '/^GO(OS|ARCH|ARM|386)=/s//export \0/p')"; \ - eval "$goEnv"; \ - [ -n "$GOOS" ]; \ - [ -n "$GOARCH" ]; \ - ( \ - cd /usr/local/go/src; \ - ./make.bash; \ - ); \ - \ - apt-mark auto '.*' > /dev/null; \ - apt-mark manual $savedAptMark > /dev/null; \ - apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ - rm -rf /var/lib/apt/lists/*; \ - \ -# pre-compile the standard library, just like the official binary release tarballs do - go install std; \ -# go install: -race is only supported on linux/amd64, linux/ppc64le, linux/arm64, freebsd/amd64, netbsd/amd64, darwin/amd64 and windows/amd64 -# go install -race std; \ - \ -# remove a few intermediate / bootstrapping files the official binary release tarballs do not contain - rm -rf \ - /usr/local/go/pkg/*/cmd \ - /usr/local/go/pkg/bootstrap \ - /usr/local/go/pkg/obj \ - /usr/local/go/pkg/tool/*/api \ - /usr/local/go/pkg/tool/*/go_bootstrap \ - /usr/local/go/src/cmd/dist/dist \ - ; \ - fi; \ - \ - go version - -ENV GOPATH /go -ENV PATH $GOPATH/bin:$PATH -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" -WORKDIR $GOPATH diff --git a/1.14/stretch/Dockerfile b/1.14/stretch/Dockerfile deleted file mode 100644 index 00e478f5..00000000 --- a/1.14/stretch/Dockerfile +++ /dev/null @@ -1,122 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM buildpack-deps:stretch-scm - -# gcc for cgo -RUN apt-get update && apt-get install -y --no-install-recommends \ - g++ \ - gcc \ - libc6-dev \ - make \ - pkg-config \ - && rm -rf /var/lib/apt/lists/* - -ENV PATH /usr/local/go/bin:$PATH - -ENV GOLANG_VERSION 1.14.15 - -RUN set -eux; \ - \ - dpkgArch="$(dpkg --print-architecture)"; \ - case "${dpkgArch##*-}" in \ - 'amd64') \ - arch='linux-amd64'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-amd64.tar.gz'; \ - sha256='c64a57b374a81f7cf1408d2c410a28c6f142414f1ffa9d1062de1d653b0ae0d6'; \ - ;; \ - 'armhf') \ - arch='linux-armv6l'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-armv6l.tar.gz'; \ - sha256='a63960d9b9c14954e299ffe060c0574ffb91ab810837da5941853b664d0652da'; \ - ;; \ - 'arm64') \ - arch='linux-arm64'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-arm64.tar.gz'; \ - sha256='4d964166a189c22032521c63935437c304bb7f01673b196898cff525897a1c27'; \ - ;; \ - 'i386') \ - arch='linux-386'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-386.tar.gz'; \ - sha256='cab962eaf954378bbb5b24f703baf3b471e9690a109082dd688593fbb6f9008e'; \ - ;; \ - 'ppc64el') \ - arch='linux-ppc64le'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-ppc64le.tar.gz'; \ - sha256='64d82004270bcd00948dbed9f1a123ef844ceb7633e6a87a5ca7ef8bdf59cfc1'; \ - ;; \ - 's390x') \ - arch='linux-s390x'; \ - url='https://storage.googleapis.com/golang/go1.14.15.linux-s390x.tar.gz'; \ - sha256='8e121c947ec531628d37ad0292623f22c8f9fecac6067192b5cce34b36cedd79'; \ - ;; \ - *) \ -# https://github.com/golang/go/issues/38536#issuecomment-616897960 - arch='src'; \ - url='https://storage.googleapis.com/golang/go1.14.15.src.tar.gz'; \ - sha256='7ed13b2209e54a451835997f78035530b331c5b6943cdcd68a3d815fdc009149'; \ - echo >&2; \ - echo >&2 "warning: current architecture ($dpkgArch) does not have a corresponding Go binary release; will be building from source"; \ - echo >&2; \ - ;; \ - esac; \ - \ - wget -O go.tgz.asc "$url.asc" --progress=dot:giga; \ - wget -O go.tgz "$url" --progress=dot:giga; \ - echo "$sha256 *go.tgz" | sha256sum --strict --check -; \ - \ -# https://github.com/golang/go/issues/14739#issuecomment-324767697 - export GNUPGHOME="$(mktemp -d)"; \ -# https://www.google.com/linuxrepositories/ - gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; \ - gpg --batch --verify go.tgz.asc go.tgz; \ - gpgconf --kill all; \ - rm -rf "$GNUPGHOME" go.tgz.asc; \ - \ - tar -C /usr/local -xzf go.tgz; \ - rm go.tgz; \ - \ - if [ "$arch" = 'src' ]; then \ - savedAptMark="$(apt-mark showmanual)"; \ - apt-get update; \ - apt-get install -y --no-install-recommends golang-go; \ - \ - goEnv="$(go env | sed -rn -e '/^GO(OS|ARCH|ARM|386)=/s//export \0/p')"; \ - eval "$goEnv"; \ - [ -n "$GOOS" ]; \ - [ -n "$GOARCH" ]; \ - ( \ - cd /usr/local/go/src; \ - ./make.bash; \ - ); \ - \ - apt-mark auto '.*' > /dev/null; \ - apt-mark manual $savedAptMark > /dev/null; \ - apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ - rm -rf /var/lib/apt/lists/*; \ - \ -# pre-compile the standard library, just like the official binary release tarballs do - go install std; \ -# go install: -race is only supported on linux/amd64, linux/ppc64le, linux/arm64, freebsd/amd64, netbsd/amd64, darwin/amd64 and windows/amd64 -# go install -race std; \ - \ -# remove a few intermediate / bootstrapping files the official binary release tarballs do not contain - rm -rf \ - /usr/local/go/pkg/*/cmd \ - /usr/local/go/pkg/bootstrap \ - /usr/local/go/pkg/obj \ - /usr/local/go/pkg/tool/*/api \ - /usr/local/go/pkg/tool/*/go_bootstrap \ - /usr/local/go/src/cmd/dist/dist \ - ; \ - fi; \ - \ - go version - -ENV GOPATH /go -ENV PATH $GOPATH/bin:$PATH -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" -WORKDIR $GOPATH diff --git a/1.14/windows/windowsservercore-1809/Dockerfile b/1.14/windows/windowsservercore-1809/Dockerfile deleted file mode 100644 index d5491288..00000000 --- a/1.14/windows/windowsservercore-1809/Dockerfile +++ /dev/null @@ -1,79 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM mcr.microsoft.com/windows/servercore:1809 - -# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324 -SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] - -# install MinGit (especially for "go get") -# https://blogs.msdn.microsoft.com/visualstudioalm/2016/09/03/whats-new-in-git-for-windows-2-10/ -# "Essentially, it is a Git for Windows that was stripped down as much as possible without sacrificing the functionality in which 3rd-party software may be interested." -# "It currently requires only ~45MB on disk." -ENV GIT_VERSION 2.23.0 -ENV GIT_TAG v${GIT_VERSION}.windows.1 -ENV GIT_DOWNLOAD_URL https://github.com/git-for-windows/git/releases/download/${GIT_TAG}/MinGit-${GIT_VERSION}-64-bit.zip -ENV GIT_DOWNLOAD_SHA256 8f65208f92c0b4c3ae4c0cf02d4b5f6791d539cd1a07b2df62b7116467724735 -# steps inspired by "chcolateyInstall.ps1" from "git.install" (https://chocolatey.org/packages/git.install) -RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \ - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ - Invoke-WebRequest -Uri $env:GIT_DOWNLOAD_URL -OutFile 'git.zip'; \ - \ - Write-Host ('Verifying sha256 ({0}) ...' -f $env:GIT_DOWNLOAD_SHA256); \ - if ((Get-FileHash git.zip -Algorithm sha256).Hash -ne $env:GIT_DOWNLOAD_SHA256) { \ - Write-Host 'FAILED!'; \ - exit 1; \ - }; \ - \ - Write-Host 'Expanding ...'; \ - Expand-Archive -Path git.zip -DestinationPath C:\git\.; \ - \ - Write-Host 'Removing ...'; \ - Remove-Item git.zip -Force; \ - \ - Write-Host 'Updating PATH ...'; \ - $env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; \ - [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \ - \ - Write-Host 'Verifying install ("git version") ...'; \ - git version; \ - \ - Write-Host 'Complete.'; - -# ideally, this would be C:\go to match Linux a bit closer, but C:\go is the recommended install path for Go itself on Windows -ENV GOPATH C:\\gopath - -# PATH isn't actually set in the Docker image, so we have to set it from within the container -RUN $newPath = ('{0}\bin;C:\go\bin;{1}' -f $env:GOPATH, $env:PATH); \ - Write-Host ('Updating PATH: {0}' -f $newPath); \ - [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine); -# doing this first to share cache across versions more aggressively - -ENV GOLANG_VERSION 1.14.15 - -RUN $url = 'https://storage.googleapis.com/golang/go1.14.15.windows-amd64.zip'; \ - Write-Host ('Downloading {0} ...' -f $url); \ - Invoke-WebRequest -Uri $url -OutFile 'go.zip'; \ - \ - $sha256 = '189bc564d537d86f80c70757ee4c29fb1c2c6e8d05bb6de1242a03a96ac850cb'; \ - Write-Host ('Verifying sha256 ({0}) ...' -f $sha256); \ - if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $sha256) { \ - Write-Host 'FAILED!'; \ - exit 1; \ - }; \ - \ - Write-Host 'Expanding ...'; \ - Expand-Archive go.zip -DestinationPath C:\; \ - \ - Write-Host 'Removing ...'; \ - Remove-Item go.zip -Force; \ - \ - Write-Host 'Verifying install ("go version") ...'; \ - go version; \ - \ - Write-Host 'Complete.'; - -WORKDIR $GOPATH diff --git a/1.16-rc/windows/nanoserver-1809/Dockerfile b/1.16-rc/windows/nanoserver-1809/Dockerfile deleted file mode 100644 index 904d7c5d..00000000 --- a/1.16-rc/windows/nanoserver-1809/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM mcr.microsoft.com/windows/nanoserver:1809 - -SHELL ["cmd", "/S", "/C"] - -# no Git installed (intentionally) -# -- Nano Server is "Windows Slim" - -# ideally, this would be C:\go to match Linux a bit closer, but C:\go is the recommended install path for Go itself on Windows -ENV GOPATH C:\\gopath - -# PATH isn't actually set in the Docker image, so we have to set it from within the container -USER ContainerAdministrator -RUN setx /m PATH "%GOPATH%\bin;C:\go\bin;%PATH%" -USER ContainerUser -# doing this first to share cache across versions more aggressively - -ENV GOLANG_VERSION 1.16rc1 - -COPY --from=golang:1.16rc1-windowsservercore-1809 C:\\go C:\\go -RUN go version - -WORKDIR $GOPATH diff --git a/1.16-rc/windows/windowsservercore-ltsc2016/Dockerfile b/1.16-rc/windows/windowsservercore-ltsc2016/Dockerfile deleted file mode 100644 index d03445ab..00000000 --- a/1.16-rc/windows/windowsservercore-ltsc2016/Dockerfile +++ /dev/null @@ -1,79 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM mcr.microsoft.com/windows/servercore:ltsc2016 - -# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324 -SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] - -# install MinGit (especially for "go get") -# https://blogs.msdn.microsoft.com/visualstudioalm/2016/09/03/whats-new-in-git-for-windows-2-10/ -# "Essentially, it is a Git for Windows that was stripped down as much as possible without sacrificing the functionality in which 3rd-party software may be interested." -# "It currently requires only ~45MB on disk." -ENV GIT_VERSION 2.23.0 -ENV GIT_TAG v${GIT_VERSION}.windows.1 -ENV GIT_DOWNLOAD_URL https://github.com/git-for-windows/git/releases/download/${GIT_TAG}/MinGit-${GIT_VERSION}-64-bit.zip -ENV GIT_DOWNLOAD_SHA256 8f65208f92c0b4c3ae4c0cf02d4b5f6791d539cd1a07b2df62b7116467724735 -# steps inspired by "chcolateyInstall.ps1" from "git.install" (https://chocolatey.org/packages/git.install) -RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \ - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ - Invoke-WebRequest -Uri $env:GIT_DOWNLOAD_URL -OutFile 'git.zip'; \ - \ - Write-Host ('Verifying sha256 ({0}) ...' -f $env:GIT_DOWNLOAD_SHA256); \ - if ((Get-FileHash git.zip -Algorithm sha256).Hash -ne $env:GIT_DOWNLOAD_SHA256) { \ - Write-Host 'FAILED!'; \ - exit 1; \ - }; \ - \ - Write-Host 'Expanding ...'; \ - Expand-Archive -Path git.zip -DestinationPath C:\git\.; \ - \ - Write-Host 'Removing ...'; \ - Remove-Item git.zip -Force; \ - \ - Write-Host 'Updating PATH ...'; \ - $env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; \ - [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \ - \ - Write-Host 'Verifying install ("git version") ...'; \ - git version; \ - \ - Write-Host 'Complete.'; - -# ideally, this would be C:\go to match Linux a bit closer, but C:\go is the recommended install path for Go itself on Windows -ENV GOPATH C:\\gopath - -# PATH isn't actually set in the Docker image, so we have to set it from within the container -RUN $newPath = ('{0}\bin;C:\go\bin;{1}' -f $env:GOPATH, $env:PATH); \ - Write-Host ('Updating PATH: {0}' -f $newPath); \ - [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine); -# doing this first to share cache across versions more aggressively - -ENV GOLANG_VERSION 1.16rc1 - -RUN $url = 'https://storage.googleapis.com/golang/go1.16rc1.windows-amd64.zip'; \ - Write-Host ('Downloading {0} ...' -f $url); \ - Invoke-WebRequest -Uri $url -OutFile 'go.zip'; \ - \ - $sha256 = 'ff765c31cf321b431f9a11ec42e61d42ec87d56333c847f5a87d30e01aaed3df'; \ - Write-Host ('Verifying sha256 ({0}) ...' -f $sha256); \ - if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $sha256) { \ - Write-Host 'FAILED!'; \ - exit 1; \ - }; \ - \ - Write-Host 'Expanding ...'; \ - Expand-Archive go.zip -DestinationPath C:\; \ - \ - Write-Host 'Removing ...'; \ - Remove-Item go.zip -Force; \ - \ - Write-Host 'Verifying install ("go version") ...'; \ - go version; \ - \ - Write-Host 'Complete.'; - -WORKDIR $GOPATH diff --git a/1.16-rc/alpine3.12/Dockerfile b/1.16/alpine3.12/Dockerfile similarity index 94% rename from 1.16-rc/alpine3.12/Dockerfile rename to 1.16/alpine3.12/Dockerfile index 872c2043..c980dcf9 100644 --- a/1.16-rc/alpine3.12/Dockerfile +++ b/1.16/alpine3.12/Dockerfile @@ -16,7 +16,7 @@ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf ENV PATH /usr/local/go/bin:$PATH -ENV GOLANG_VERSION 1.16rc1 +ENV GOLANG_VERSION 1.16 RUN set -eux; \ apk add --no-cache --virtual .build-deps \ @@ -47,8 +47,8 @@ RUN set -eux; \ esac; \ \ # https://github.com/golang/go/issues/38536#issuecomment-616897960 - url='https://storage.googleapis.com/golang/go1.16rc1.src.tar.gz'; \ - sha256='6a33569f9d0d21db31614086cc2a4f0fbc683b41c1c53fb512a1341ce5763ff5'; \ + url='https://storage.googleapis.com/golang/go1.16.src.tar.gz'; \ + sha256='7688063d55656105898f323d90a79a39c378d86fe89ae192eb3b7fc46347c95a'; \ \ wget -O go.tgz.asc "$url.asc"; \ wget -O go.tgz "$url"; \ diff --git a/1.16-rc/alpine3.13/Dockerfile b/1.16/alpine3.13/Dockerfile similarity index 94% rename from 1.16-rc/alpine3.13/Dockerfile rename to 1.16/alpine3.13/Dockerfile index 048b058f..8dd40ef8 100644 --- a/1.16-rc/alpine3.13/Dockerfile +++ b/1.16/alpine3.13/Dockerfile @@ -16,7 +16,7 @@ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf ENV PATH /usr/local/go/bin:$PATH -ENV GOLANG_VERSION 1.16rc1 +ENV GOLANG_VERSION 1.16 RUN set -eux; \ apk add --no-cache --virtual .build-deps \ @@ -47,8 +47,8 @@ RUN set -eux; \ esac; \ \ # https://github.com/golang/go/issues/38536#issuecomment-616897960 - url='https://storage.googleapis.com/golang/go1.16rc1.src.tar.gz'; \ - sha256='6a33569f9d0d21db31614086cc2a4f0fbc683b41c1c53fb512a1341ce5763ff5'; \ + url='https://storage.googleapis.com/golang/go1.16.src.tar.gz'; \ + sha256='7688063d55656105898f323d90a79a39c378d86fe89ae192eb3b7fc46347c95a'; \ \ wget -O go.tgz.asc "$url.asc"; \ wget -O go.tgz "$url"; \ diff --git a/1.16-rc/buster/Dockerfile b/1.16/buster/Dockerfile similarity index 71% rename from 1.16-rc/buster/Dockerfile rename to 1.16/buster/Dockerfile index 9271e4ca..59049394 100644 --- a/1.16-rc/buster/Dockerfile +++ b/1.16/buster/Dockerfile @@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ENV PATH /usr/local/go/bin:$PATH -ENV GOLANG_VERSION 1.16rc1 +ENV GOLANG_VERSION 1.16 RUN set -eux; \ \ @@ -25,39 +25,39 @@ RUN set -eux; \ case "${dpkgArch##*-}" in \ 'amd64') \ arch='linux-amd64'; \ - url='https://storage.googleapis.com/golang/go1.16rc1.linux-amd64.tar.gz'; \ - sha256='6a62610f56a04bae8702cd2bd73bfea34645c1b89ded3f0b81a841393b6f1f14'; \ + url='https://storage.googleapis.com/golang/go1.16.linux-amd64.tar.gz'; \ + sha256='013a489ebb3e24ef3d915abe5b94c3286c070dfe0818d5bca8108f1d6e8440d2'; \ ;; \ 'armhf') \ arch='linux-armv6l'; \ - url='https://storage.googleapis.com/golang/go1.16rc1.linux-armv6l.tar.gz'; \ - sha256='ab8d1447a2d74ab61aadbbed8229d9d0cf465959290a55fd5b82824a25aae2cf'; \ + url='https://storage.googleapis.com/golang/go1.16.linux-armv6l.tar.gz'; \ + sha256='d1d9404b1dbd77afa2bdc70934e10fbfcf7d785c372efc29462bb7d83d0a32fd'; \ ;; \ 'arm64') \ arch='linux-arm64'; \ - url='https://storage.googleapis.com/golang/go1.16rc1.linux-arm64.tar.gz'; \ - sha256='ba6769f0e2051fcb5418c4ba9b3f12fe7776f865e8ae8692d71efed74c4373fa'; \ + url='https://storage.googleapis.com/golang/go1.16.linux-arm64.tar.gz'; \ + sha256='3770f7eb22d05e25fbee8fb53c2a4e897da043eb83c69b9a14f8d98562cd8098'; \ ;; \ 'i386') \ arch='linux-386'; \ - url='https://storage.googleapis.com/golang/go1.16rc1.linux-386.tar.gz'; \ - sha256='53eb05c57a5e0deb8ac12fa10e7452c1395a500cae40acbdcd90b5f94218b36c'; \ + url='https://storage.googleapis.com/golang/go1.16.linux-386.tar.gz'; \ + sha256='ea435a1ac6d497b03e367fdfb74b33e961d813883468080f6e239b3b03bea6aa'; \ ;; \ 'ppc64el') \ arch='linux-ppc64le'; \ - url='https://storage.googleapis.com/golang/go1.16rc1.linux-ppc64le.tar.gz'; \ - sha256='c99498c31e41dd6478a9f0326d75c9ac44e8a994564d9eedee30cb40f5ae273c'; \ + url='https://storage.googleapis.com/golang/go1.16.linux-ppc64le.tar.gz'; \ + sha256='27a1aaa988e930b7932ce459c8a63ad5b3333b3a06b016d87ff289f2a11aacd6'; \ ;; \ 's390x') \ arch='linux-s390x'; \ - url='https://storage.googleapis.com/golang/go1.16rc1.linux-s390x.tar.gz'; \ - sha256='d3819118e8e3696776e9dc0abfedb701b38db1c4d40480a0a162c2be5df96062'; \ + url='https://storage.googleapis.com/golang/go1.16.linux-s390x.tar.gz'; \ + sha256='be4c9e4e2cf058efc4e3eb013a760cb989ddc4362f111950c990d1c63b27ccbe'; \ ;; \ *) \ # https://github.com/golang/go/issues/38536#issuecomment-616897960 arch='src'; \ - url='https://storage.googleapis.com/golang/go1.16rc1.src.tar.gz'; \ - sha256='6a33569f9d0d21db31614086cc2a4f0fbc683b41c1c53fb512a1341ce5763ff5'; \ + url='https://storage.googleapis.com/golang/go1.16.src.tar.gz'; \ + sha256='7688063d55656105898f323d90a79a39c378d86fe89ae192eb3b7fc46347c95a'; \ echo >&2; \ echo >&2 "warning: current architecture ($dpkgArch) does not have a corresponding Go binary release; will be building from source"; \ echo >&2; \ diff --git a/1.14/windows/nanoserver-1809/Dockerfile b/1.16/windows/nanoserver-1809/Dockerfile similarity index 88% rename from 1.14/windows/nanoserver-1809/Dockerfile rename to 1.16/windows/nanoserver-1809/Dockerfile index c63643db..8903944f 100644 --- a/1.14/windows/nanoserver-1809/Dockerfile +++ b/1.16/windows/nanoserver-1809/Dockerfile @@ -20,9 +20,9 @@ RUN setx /m PATH "%GOPATH%\bin;C:\go\bin;%PATH%" USER ContainerUser # doing this first to share cache across versions more aggressively -ENV GOLANG_VERSION 1.14.15 +ENV GOLANG_VERSION 1.16 -COPY --from=golang:1.14.15-windowsservercore-1809 C:\\go C:\\go +COPY --from=golang:1.16-windowsservercore-1809 C:\\go C:\\go RUN go version WORKDIR $GOPATH diff --git a/1.16-rc/windows/windowsservercore-1809/Dockerfile b/1.16/windows/windowsservercore-1809/Dockerfile similarity index 94% rename from 1.16-rc/windows/windowsservercore-1809/Dockerfile rename to 1.16/windows/windowsservercore-1809/Dockerfile index c00b8561..86dc90c7 100644 --- a/1.16-rc/windows/windowsservercore-1809/Dockerfile +++ b/1.16/windows/windowsservercore-1809/Dockerfile @@ -52,13 +52,13 @@ RUN $newPath = ('{0}\bin;C:\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.16rc1 +ENV GOLANG_VERSION 1.16 -RUN $url = 'https://storage.googleapis.com/golang/go1.16rc1.windows-amd64.zip'; \ +RUN $url = 'https://storage.googleapis.com/golang/go1.16.windows-amd64.zip'; \ Write-Host ('Downloading {0} ...' -f $url); \ Invoke-WebRequest -Uri $url -OutFile 'go.zip'; \ \ - $sha256 = 'ff765c31cf321b431f9a11ec42e61d42ec87d56333c847f5a87d30e01aaed3df'; \ + $sha256 = '5cc88fa506b3d5c453c54c3ea218fc8dd05d7362ae1de15bb67986b72089ce93'; \ Write-Host ('Verifying sha256 ({0}) ...' -f $sha256); \ if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $sha256) { \ Write-Host 'FAILED!'; \ diff --git a/1.14/windows/windowsservercore-ltsc2016/Dockerfile b/1.16/windows/windowsservercore-ltsc2016/Dockerfile similarity index 94% rename from 1.14/windows/windowsservercore-ltsc2016/Dockerfile rename to 1.16/windows/windowsservercore-ltsc2016/Dockerfile index dbfc45b4..a223786b 100644 --- a/1.14/windows/windowsservercore-ltsc2016/Dockerfile +++ b/1.16/windows/windowsservercore-ltsc2016/Dockerfile @@ -52,13 +52,13 @@ RUN $newPath = ('{0}\bin;C:\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.14.15 +ENV GOLANG_VERSION 1.16 -RUN $url = 'https://storage.googleapis.com/golang/go1.14.15.windows-amd64.zip'; \ +RUN $url = 'https://storage.googleapis.com/golang/go1.16.windows-amd64.zip'; \ Write-Host ('Downloading {0} ...' -f $url); \ Invoke-WebRequest -Uri $url -OutFile 'go.zip'; \ \ - $sha256 = '189bc564d537d86f80c70757ee4c29fb1c2c6e8d05bb6de1242a03a96ac850cb'; \ + $sha256 = '5cc88fa506b3d5c453c54c3ea218fc8dd05d7362ae1de15bb67986b72089ce93'; \ Write-Host ('Verifying sha256 ({0}) ...' -f $sha256); \ if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $sha256) { \ Write-Host 'FAILED!'; \ diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index 940cdde6..edde4f2d 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -2,8 +2,8 @@ set -Eeuo pipefail declare -A aliases=( - [1.15]='1 latest' - [1.16-rc]='rc' + [1.16]='1 latest' + [1.17-rc]='rc' ) defaultDebianSuite='buster' diff --git a/versions.json b/versions.json index b6e393d7..e87ab80c 100644 --- a/versions.json +++ b/versions.json @@ -1,59 +1,4 @@ { - "1.14": { - "arches": { - "amd64": { - "arch": "linux-amd64", - "sha256": "c64a57b374a81f7cf1408d2c410a28c6f142414f1ffa9d1062de1d653b0ae0d6", - "url": "https://storage.googleapis.com/golang/go1.14.15.linux-amd64.tar.gz" - }, - "arm32v7": { - "arch": "linux-armv6l", - "sha256": "a63960d9b9c14954e299ffe060c0574ffb91ab810837da5941853b664d0652da", - "url": "https://storage.googleapis.com/golang/go1.14.15.linux-armv6l.tar.gz" - }, - "arm64v8": { - "arch": "linux-arm64", - "sha256": "4d964166a189c22032521c63935437c304bb7f01673b196898cff525897a1c27", - "url": "https://storage.googleapis.com/golang/go1.14.15.linux-arm64.tar.gz" - }, - "i386": { - "arch": "linux-386", - "sha256": "cab962eaf954378bbb5b24f703baf3b471e9690a109082dd688593fbb6f9008e", - "url": "https://storage.googleapis.com/golang/go1.14.15.linux-386.tar.gz" - }, - "ppc64le": { - "arch": "linux-ppc64le", - "sha256": "64d82004270bcd00948dbed9f1a123ef844ceb7633e6a87a5ca7ef8bdf59cfc1", - "url": "https://storage.googleapis.com/golang/go1.14.15.linux-ppc64le.tar.gz" - }, - "s390x": { - "arch": "linux-s390x", - "sha256": "8e121c947ec531628d37ad0292623f22c8f9fecac6067192b5cce34b36cedd79", - "url": "https://storage.googleapis.com/golang/go1.14.15.linux-s390x.tar.gz" - }, - "src": { - "arch": "src", - "sha256": "7ed13b2209e54a451835997f78035530b331c5b6943cdcd68a3d815fdc009149", - "url": "https://storage.googleapis.com/golang/go1.14.15.src.tar.gz" - }, - "windows-amd64": { - "arch": "windows-amd64", - "sha256": "189bc564d537d86f80c70757ee4c29fb1c2c6e8d05bb6de1242a03a96ac850cb", - "url": "https://storage.googleapis.com/golang/go1.14.15.windows-amd64.zip" - } - }, - "variants": [ - "buster", - "stretch", - "alpine3.13", - "alpine3.12", - "alpine3.11", - "windows/windowsservercore-1809", - "windows/windowsservercore-ltsc2016", - "windows/nanoserver-1809" - ], - "version": "1.14.15" - }, "1.15": { "arches": { "amd64": { @@ -107,47 +52,47 @@ ], "version": "1.15.8" }, - "1.16-rc": { + "1.16": { "arches": { "amd64": { "arch": "linux-amd64", - "sha256": "6a62610f56a04bae8702cd2bd73bfea34645c1b89ded3f0b81a841393b6f1f14", - "url": "https://storage.googleapis.com/golang/go1.16rc1.linux-amd64.tar.gz" + "sha256": "013a489ebb3e24ef3d915abe5b94c3286c070dfe0818d5bca8108f1d6e8440d2", + "url": "https://storage.googleapis.com/golang/go1.16.linux-amd64.tar.gz" }, "arm32v7": { "arch": "linux-armv6l", - "sha256": "ab8d1447a2d74ab61aadbbed8229d9d0cf465959290a55fd5b82824a25aae2cf", - "url": "https://storage.googleapis.com/golang/go1.16rc1.linux-armv6l.tar.gz" + "sha256": "d1d9404b1dbd77afa2bdc70934e10fbfcf7d785c372efc29462bb7d83d0a32fd", + "url": "https://storage.googleapis.com/golang/go1.16.linux-armv6l.tar.gz" }, "arm64v8": { "arch": "linux-arm64", - "sha256": "ba6769f0e2051fcb5418c4ba9b3f12fe7776f865e8ae8692d71efed74c4373fa", - "url": "https://storage.googleapis.com/golang/go1.16rc1.linux-arm64.tar.gz" + "sha256": "3770f7eb22d05e25fbee8fb53c2a4e897da043eb83c69b9a14f8d98562cd8098", + "url": "https://storage.googleapis.com/golang/go1.16.linux-arm64.tar.gz" }, "i386": { "arch": "linux-386", - "sha256": "53eb05c57a5e0deb8ac12fa10e7452c1395a500cae40acbdcd90b5f94218b36c", - "url": "https://storage.googleapis.com/golang/go1.16rc1.linux-386.tar.gz" + "sha256": "ea435a1ac6d497b03e367fdfb74b33e961d813883468080f6e239b3b03bea6aa", + "url": "https://storage.googleapis.com/golang/go1.16.linux-386.tar.gz" }, "ppc64le": { "arch": "linux-ppc64le", - "sha256": "c99498c31e41dd6478a9f0326d75c9ac44e8a994564d9eedee30cb40f5ae273c", - "url": "https://storage.googleapis.com/golang/go1.16rc1.linux-ppc64le.tar.gz" + "sha256": "27a1aaa988e930b7932ce459c8a63ad5b3333b3a06b016d87ff289f2a11aacd6", + "url": "https://storage.googleapis.com/golang/go1.16.linux-ppc64le.tar.gz" }, "s390x": { "arch": "linux-s390x", - "sha256": "d3819118e8e3696776e9dc0abfedb701b38db1c4d40480a0a162c2be5df96062", - "url": "https://storage.googleapis.com/golang/go1.16rc1.linux-s390x.tar.gz" + "sha256": "be4c9e4e2cf058efc4e3eb013a760cb989ddc4362f111950c990d1c63b27ccbe", + "url": "https://storage.googleapis.com/golang/go1.16.linux-s390x.tar.gz" }, "src": { "arch": "src", - "sha256": "6a33569f9d0d21db31614086cc2a4f0fbc683b41c1c53fb512a1341ce5763ff5", - "url": "https://storage.googleapis.com/golang/go1.16rc1.src.tar.gz" + "sha256": "7688063d55656105898f323d90a79a39c378d86fe89ae192eb3b7fc46347c95a", + "url": "https://storage.googleapis.com/golang/go1.16.src.tar.gz" }, "windows-amd64": { "arch": "windows-amd64", - "sha256": "ff765c31cf321b431f9a11ec42e61d42ec87d56333c847f5a87d30e01aaed3df", - "url": "https://storage.googleapis.com/golang/go1.16rc1.windows-amd64.zip" + "sha256": "5cc88fa506b3d5c453c54c3ea218fc8dd05d7362ae1de15bb67986b72089ce93", + "url": "https://storage.googleapis.com/golang/go1.16.windows-amd64.zip" } }, "variants": [ @@ -158,6 +103,6 @@ "windows/windowsservercore-ltsc2016", "windows/nanoserver-1809" ], - "version": "1.16rc1" + "version": "1.16" } }