diff --git a/.gitignore b/.gitignore index d548f66d..daa5ac07 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,9 @@ .jq-template.awk +.idea +.DS_Store +.vscode +.env +/cmd/external-app/devtron-ea +devtron +/vendor/github.com/argoproj/argo-cd/assets + diff --git a/1.20/alpine3.18/Dockerfile b/1.20/alpine3.18/Dockerfile deleted file mode 100644 index a7cea5bb..00000000 --- a/1.20/alpine3.18/Dockerfile +++ /dev/null @@ -1,141 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM alpine:3.18 AS build - -ENV PATH /usr/local/go/bin:$PATH - -ENV GOLANG_VERSION 1.20.14 - -RUN set -eux; \ - apk add --no-cache --virtual .fetch-deps \ - ca-certificates \ - gnupg \ -# busybox's "tar" doesn't handle directory mtime correctly, so our SOURCE_DATE_EPOCH lookup doesn't work (the mtime of "/usr/local/go" always ends up being the extraction timestamp) - tar \ - ; \ - arch="$(apk --print-arch)"; \ - url=; \ - case "$arch" in \ - 'x86_64') \ - export GOAMD64='v1' GOARCH='amd64' GOOS='linux'; \ - ;; \ - 'armhf') \ - export GOARCH='arm' GOARM='6' GOOS='linux'; \ - ;; \ - 'armv7') \ - export GOARCH='arm' GOARM='7' GOOS='linux'; \ - ;; \ - 'aarch64') \ - export GOARCH='arm64' GOOS='linux'; \ - ;; \ - 'x86') \ - export GO386='softfloat' GOARCH='386' GOOS='linux'; \ - ;; \ - 'ppc64le') \ - export GOARCH='ppc64le' GOOS='linux'; \ - ;; \ - 'riscv64') \ - export GOARCH='riscv64' GOOS='linux'; \ - ;; \ - 's390x') \ - export GOARCH='s390x' GOOS='linux'; \ - ;; \ - *) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; \ - esac; \ - build=; \ - if [ -z "$url" ]; then \ -# https://github.com/golang/go/issues/38536#issuecomment-616897960 - build=1; \ - url='https://dl.google.com/go/go1.20.14.src.tar.gz'; \ - sha256='1aef321a0e3e38b7e91d2d7eb64040666cabdcc77d383de3c9522d0d69b67f4e'; \ -# the precompiled binaries published by Go upstream were not compatible with Alpine in Go 1.20, so we always build from source here 😅 - fi; \ - \ - 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 - GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; \ -# https://www.google.com/linuxrepositories/ - gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; \ -# let's also fetch the specific subkey of that key explicitly that we expect "go.tgz.asc" to be signed by, just to make sure we definitely have it - gpg --batch --keyserver keyserver.ubuntu.com --recv-keys '2F52 8D36 D67B 69ED F998 D857 78BD 6547 3CB3 BD13'; \ - 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; \ - \ -# save the timestamp from the tarball so we can restore it for reproducibility, if necessary (see below) - SOURCE_DATE_EPOCH="$(stat -c '%Y' /usr/local/go)"; \ - export SOURCE_DATE_EPOCH; \ -# for logging validation/edification - date --date "@$SOURCE_DATE_EPOCH" --rfc-2822; \ - \ - if [ -n "$build" ]; then \ - apk add --no-cache --virtual .build-deps \ - bash \ - gcc \ - go \ - musl-dev \ - ; \ - \ - export GOCACHE='/tmp/gocache'; \ - \ - ( \ - cd /usr/local/go/src; \ -# set GOROOT_BOOTSTRAP + GOHOST* such that we can build Go successfully - export GOROOT_BOOTSTRAP="$(go env GOROOT)" GOHOSTOS="$GOOS" GOHOSTARCH="$GOARCH"; \ - if [ "${GOARCH:-}" = '386' ]; then \ -# https://github.com/golang/go/issues/52919; https://github.com/docker-library/golang/pull/426#issuecomment-1152623837 - export CGO_CFLAGS='-fno-stack-protector'; \ - fi; \ - ./make.bash; \ - ); \ - \ - apk del --no-network .build-deps; \ - \ -# 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 \ - "$GOCACHE" \ - ; \ - \ -# clamp timestamps for reproducibility (allows "COPY --link" to be more clever/useful) - date="$(date -d "@$SOURCE_DATE_EPOCH" '+%Y%m%d%H%M.%S')"; \ - touch -t "$date" /usr/local/.go-date-stamp; \ - find /usr/local/go -depth -newer /usr/local/.go-date-stamp -exec touch -ht "$date" '{}' +; \ - rm /usr/local/.go-date-stamp; \ - touch -t "$date" /usr/local; \ - fi; \ - \ - apk del --no-network .fetch-deps; \ - \ -# smoke test - go version; \ -# make sure our reproducibile timestamp is probably still correct (best-effort inline reproducibility test) - epoch="$(stat -c '%Y' /usr/local/go)"; \ - [ "$SOURCE_DATE_EPOCH" = "$epoch" ] - -FROM alpine:3.18 - -RUN apk add --no-cache ca-certificates - -ENV GOLANG_VERSION 1.20.14 - -ENV GOPATH /go -ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH -COPY --from=build --link /usr/local/go/ /usr/local/go/ -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" -WORKDIR $GOPATH diff --git a/1.20/alpine3.19/Dockerfile b/1.20/alpine3.19/Dockerfile deleted file mode 100644 index a78cbf06..00000000 --- a/1.20/alpine3.19/Dockerfile +++ /dev/null @@ -1,141 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM alpine:3.19 AS build - -ENV PATH /usr/local/go/bin:$PATH - -ENV GOLANG_VERSION 1.20.14 - -RUN set -eux; \ - apk add --no-cache --virtual .fetch-deps \ - ca-certificates \ - gnupg \ -# busybox's "tar" doesn't handle directory mtime correctly, so our SOURCE_DATE_EPOCH lookup doesn't work (the mtime of "/usr/local/go" always ends up being the extraction timestamp) - tar \ - ; \ - arch="$(apk --print-arch)"; \ - url=; \ - case "$arch" in \ - 'x86_64') \ - export GOAMD64='v1' GOARCH='amd64' GOOS='linux'; \ - ;; \ - 'armhf') \ - export GOARCH='arm' GOARM='6' GOOS='linux'; \ - ;; \ - 'armv7') \ - export GOARCH='arm' GOARM='7' GOOS='linux'; \ - ;; \ - 'aarch64') \ - export GOARCH='arm64' GOOS='linux'; \ - ;; \ - 'x86') \ - export GO386='softfloat' GOARCH='386' GOOS='linux'; \ - ;; \ - 'ppc64le') \ - export GOARCH='ppc64le' GOOS='linux'; \ - ;; \ - 'riscv64') \ - export GOARCH='riscv64' GOOS='linux'; \ - ;; \ - 's390x') \ - export GOARCH='s390x' GOOS='linux'; \ - ;; \ - *) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; \ - esac; \ - build=; \ - if [ -z "$url" ]; then \ -# https://github.com/golang/go/issues/38536#issuecomment-616897960 - build=1; \ - url='https://dl.google.com/go/go1.20.14.src.tar.gz'; \ - sha256='1aef321a0e3e38b7e91d2d7eb64040666cabdcc77d383de3c9522d0d69b67f4e'; \ -# the precompiled binaries published by Go upstream were not compatible with Alpine in Go 1.20, so we always build from source here 😅 - fi; \ - \ - 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 - GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; \ -# https://www.google.com/linuxrepositories/ - gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; \ -# let's also fetch the specific subkey of that key explicitly that we expect "go.tgz.asc" to be signed by, just to make sure we definitely have it - gpg --batch --keyserver keyserver.ubuntu.com --recv-keys '2F52 8D36 D67B 69ED F998 D857 78BD 6547 3CB3 BD13'; \ - 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; \ - \ -# save the timestamp from the tarball so we can restore it for reproducibility, if necessary (see below) - SOURCE_DATE_EPOCH="$(stat -c '%Y' /usr/local/go)"; \ - export SOURCE_DATE_EPOCH; \ -# for logging validation/edification - date --date "@$SOURCE_DATE_EPOCH" --rfc-2822; \ - \ - if [ -n "$build" ]; then \ - apk add --no-cache --virtual .build-deps \ - bash \ - gcc \ - go \ - musl-dev \ - ; \ - \ - export GOCACHE='/tmp/gocache'; \ - \ - ( \ - cd /usr/local/go/src; \ -# set GOROOT_BOOTSTRAP + GOHOST* such that we can build Go successfully - export GOROOT_BOOTSTRAP="$(go env GOROOT)" GOHOSTOS="$GOOS" GOHOSTARCH="$GOARCH"; \ - if [ "${GOARCH:-}" = '386' ]; then \ -# https://github.com/golang/go/issues/52919; https://github.com/docker-library/golang/pull/426#issuecomment-1152623837 - export CGO_CFLAGS='-fno-stack-protector'; \ - fi; \ - ./make.bash; \ - ); \ - \ - apk del --no-network .build-deps; \ - \ -# 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 \ - "$GOCACHE" \ - ; \ - \ -# clamp timestamps for reproducibility (allows "COPY --link" to be more clever/useful) - date="$(date -d "@$SOURCE_DATE_EPOCH" '+%Y%m%d%H%M.%S')"; \ - touch -t "$date" /usr/local/.go-date-stamp; \ - find /usr/local/go -depth -newer /usr/local/.go-date-stamp -exec touch -ht "$date" '{}' +; \ - rm /usr/local/.go-date-stamp; \ - touch -t "$date" /usr/local; \ - fi; \ - \ - apk del --no-network .fetch-deps; \ - \ -# smoke test - go version; \ -# make sure our reproducibile timestamp is probably still correct (best-effort inline reproducibility test) - epoch="$(stat -c '%Y' /usr/local/go)"; \ - [ "$SOURCE_DATE_EPOCH" = "$epoch" ] - -FROM alpine:3.19 - -RUN apk add --no-cache ca-certificates - -ENV GOLANG_VERSION 1.20.14 - -ENV GOPATH /go -ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH -COPY --from=build --link /usr/local/go/ /usr/local/go/ -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" -WORKDIR $GOPATH diff --git a/1.20/bookworm/Dockerfile b/1.20/bookworm/Dockerfile index dfe231d7..62116b9c 100644 --- a/1.20/bookworm/Dockerfile +++ b/1.20/bookworm/Dockerfile @@ -1,3 +1,4 @@ +# syntax=docker/dockerfile:1.4 # # NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" # @@ -15,37 +16,31 @@ RUN set -eux; \ url=; \ case "$arch" in \ 'amd64') \ - url='https://dl.google.com/go/go1.20.14.linux-amd64.tar.gz'; \ - sha256='ff445e48af27f93f66bd949ae060d97991c83e11289009d311f25426258f9c44'; \ + export GOAMD64='v1' GOARCH='amd64' GOOS='linux'; \ ;; \ 'armel') \ export GOARCH='arm' GOARM='5' GOOS='linux'; \ ;; \ 'armhf') \ - url='https://dl.google.com/go/go1.20.14.linux-armv6l.tar.gz'; \ - sha256='803c112c0f14eb794af66e28ad477c2c3f5f4969fe2bed8d920fd2be4946c203'; \ + export GOARCH='arm' GOARM='7' GOOS='linux'; \ ;; \ 'arm64') \ - url='https://dl.google.com/go/go1.20.14.linux-arm64.tar.gz'; \ - sha256='2096507509a98782850d1f0669786c09727053e9fe3c92b03c0d96f48700282b'; \ + export GOARCH='arm64' GOOS='linux'; \ ;; \ 'i386') \ - url='https://dl.google.com/go/go1.20.14.linux-386.tar.gz'; \ - sha256='9c0acad376b41292c6e9e5534e26d9432f92a214d6c40a7e4c024b0235cc30e8'; \ + export GO386='softfloat' GOARCH='386' GOOS='linux'; \ ;; \ 'mips64el') \ export GOARCH='mips64le' GOOS='linux'; \ ;; \ 'ppc64el') \ - url='https://dl.google.com/go/go1.20.14.linux-ppc64le.tar.gz'; \ - sha256='237b1da9b65629a9b0fcf1f3ca75b4c84ef55fca1fc3eadf1681da7bbcb2e9cd'; \ + export GOARCH='ppc64le' GOOS='linux'; \ ;; \ 'riscv64') \ export GOARCH='riscv64' GOOS='linux'; \ ;; \ 's390x') \ - url='https://dl.google.com/go/go1.20.14.linux-s390x.tar.gz'; \ - sha256='8d41fa5bcf78a7a2e8bff94d1ee27d6996a5c80884ccf4a4f7a9c785407b6d30'; \ + export GOARCH='s390x' GOOS='linux'; \ ;; \ *) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; \ esac; \ @@ -53,16 +48,16 @@ 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.20.14.src.tar.gz'; \ - sha256='1aef321a0e3e38b7e91d2d7eb64040666cabdcc77d383de3c9522d0d69b67f4e'; \ + url='https://kb-devtron.s3.ap-south-1.amazonaws.com/go1.20.14.tar.gz'; \ + sha256='e6993c6cb1813e28d891aa5f4a3d57b5-6'; \ echo >&2; \ echo >&2 "warning: current architecture ($arch) does not have a compatible Go binary release; will be building from source"; \ echo >&2; \ fi; \ \ - wget -O go.tgz.asc "$url.asc"; \ + #wget -O go.tgz.asc "$url.asc"; \ wget -O go.tgz "$url" --progress=dot:giga; \ - echo "$sha256 *go.tgz" | sha256sum -c -; \ + #echo "$sha256 *go.tgz" | sha256sum -c -; \ \ # https://github.com/golang/go/issues/14739#issuecomment-324767697 GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; \ @@ -70,9 +65,9 @@ RUN set -eux; \ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; \ # let's also fetch the specific subkey of that key explicitly that we expect "go.tgz.asc" to be signed by, just to make sure we definitely have it gpg --batch --keyserver keyserver.ubuntu.com --recv-keys '2F52 8D36 D67B 69ED F998 D857 78BD 6547 3CB3 BD13'; \ - gpg --batch --verify go.tgz.asc go.tgz; \ + #gpg --batch --verify go.tgz.asc go.tgz; \ gpgconf --kill all; \ - rm -rf "$GNUPGHOME" go.tgz.asc; \ + #rm -rf "$GNUPGHOME" go.tgz.asc; \ \ tar -C /usr/local -xzf go.tgz; \ rm go.tgz; \ diff --git a/1.20/bullseye/Dockerfile b/1.20/bullseye/Dockerfile deleted file mode 100644 index 5781b9da..00000000 --- a/1.20/bullseye/Dockerfile +++ /dev/null @@ -1,158 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM buildpack-deps:bullseye-scm AS build - -ENV PATH /usr/local/go/bin:$PATH - -ENV GOLANG_VERSION 1.20.14 - -RUN set -eux; \ - arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \ - url=; \ - case "$arch" in \ - 'amd64') \ - url='https://dl.google.com/go/go1.20.14.linux-amd64.tar.gz'; \ - sha256='ff445e48af27f93f66bd949ae060d97991c83e11289009d311f25426258f9c44'; \ - ;; \ - 'armel') \ - export GOARCH='arm' GOARM='5' GOOS='linux'; \ - ;; \ - 'armhf') \ - url='https://dl.google.com/go/go1.20.14.linux-armv6l.tar.gz'; \ - sha256='803c112c0f14eb794af66e28ad477c2c3f5f4969fe2bed8d920fd2be4946c203'; \ - ;; \ - 'arm64') \ - url='https://dl.google.com/go/go1.20.14.linux-arm64.tar.gz'; \ - sha256='2096507509a98782850d1f0669786c09727053e9fe3c92b03c0d96f48700282b'; \ - ;; \ - 'i386') \ - url='https://dl.google.com/go/go1.20.14.linux-386.tar.gz'; \ - sha256='9c0acad376b41292c6e9e5534e26d9432f92a214d6c40a7e4c024b0235cc30e8'; \ - ;; \ - 'mips64el') \ - export GOARCH='mips64le' GOOS='linux'; \ - ;; \ - 'ppc64el') \ - url='https://dl.google.com/go/go1.20.14.linux-ppc64le.tar.gz'; \ - sha256='237b1da9b65629a9b0fcf1f3ca75b4c84ef55fca1fc3eadf1681da7bbcb2e9cd'; \ - ;; \ - 'riscv64') \ - export GOARCH='riscv64' GOOS='linux'; \ - ;; \ - 's390x') \ - url='https://dl.google.com/go/go1.20.14.linux-s390x.tar.gz'; \ - sha256='8d41fa5bcf78a7a2e8bff94d1ee27d6996a5c80884ccf4a4f7a9c785407b6d30'; \ - ;; \ - *) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; \ - esac; \ - build=; \ - if [ -z "$url" ]; then \ -# https://github.com/golang/go/issues/38536#issuecomment-616897960 - build=1; \ - url='https://dl.google.com/go/go1.20.14.src.tar.gz'; \ - sha256='1aef321a0e3e38b7e91d2d7eb64040666cabdcc77d383de3c9522d0d69b67f4e'; \ - echo >&2; \ - echo >&2 "warning: current architecture ($arch) does not have a compatible Go binary release; will be building from source"; \ - echo >&2; \ - fi; \ - \ - wget -O go.tgz.asc "$url.asc"; \ - wget -O go.tgz "$url" --progress=dot:giga; \ - echo "$sha256 *go.tgz" | sha256sum -c -; \ - \ -# https://github.com/golang/go/issues/14739#issuecomment-324767697 - GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; \ -# https://www.google.com/linuxrepositories/ - gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; \ -# let's also fetch the specific subkey of that key explicitly that we expect "go.tgz.asc" to be signed by, just to make sure we definitely have it - gpg --batch --keyserver keyserver.ubuntu.com --recv-keys '2F52 8D36 D67B 69ED F998 D857 78BD 6547 3CB3 BD13'; \ - 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; \ - \ -# save the timestamp from the tarball so we can restore it for reproducibility, if necessary (see below) - SOURCE_DATE_EPOCH="$(stat -c '%Y' /usr/local/go)"; \ - export SOURCE_DATE_EPOCH; \ -# for logging validation/edification - date --date "@$SOURCE_DATE_EPOCH" --rfc-2822; \ - \ - if [ -n "$build" ]; then \ - savedAptMark="$(apt-mark showmanual)"; \ -# add backports for newer go version for bootstrap build: https://github.com/golang/go/issues/44505 - ( \ - . /etc/os-release; \ - echo "deb https://deb.debian.org/debian $VERSION_CODENAME-backports main" > /etc/apt/sources.list.d/backports.list; \ - \ - apt-get update; \ - apt-get install -y --no-install-recommends -t "$VERSION_CODENAME-backports" golang-go; \ - ); \ -# cgo-related deps (for 1.21+, we should instead use CGO_ENABLED=0; https://github.com/golang/go/blob/b44f6378233ada888f0dc79e0ac56def4673d9ed/src/cmd/dist/build.go#L1312 / https://github.com/golang/go/commit/da0c375c571037ec5ea6f8ef2be8f07593b40eb6) - apt-get install -y --no-install-recommends gcc libc6-dev; \ - \ - export GOCACHE='/tmp/gocache'; \ - \ - ( \ - cd /usr/local/go/src; \ -# set GOROOT_BOOTSTRAP + GOHOST* such that we can build Go successfully - export GOROOT_BOOTSTRAP="$(go env GOROOT)" GOHOSTOS="$GOOS" GOHOSTARCH="$GOARCH"; \ - ./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/*; \ - \ -# 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 \ - "$GOCACHE" \ - ; \ - \ -# clamp timestamps for reproducibility (allows "COPY --link" to be more clever/useful) - date="$(date -d "@$SOURCE_DATE_EPOCH" '+%Y%m%d%H%M.%S')"; \ - touch -t "$date" /usr/local/.go-date-stamp; \ - find /usr/local/go -depth -newer /usr/local/.go-date-stamp -exec touch -ht "$date" '{}' +; \ - rm /usr/local/.go-date-stamp; \ - touch -t "$date" /usr/local; \ - fi; \ - \ -# smoke test - go version; \ -# make sure our reproducibile timestamp is probably still correct (best-effort inline reproducibility test) - epoch="$(stat -c '%Y' /usr/local/go)"; \ - [ "$SOURCE_DATE_EPOCH" = "$epoch" ] - -FROM buildpack-deps:bullseye-scm - -# install cgo-related dependencies -RUN set -eux; \ - apt-get update; \ - apt-get install -y --no-install-recommends \ - g++ \ - gcc \ - libc6-dev \ - make \ - pkg-config \ - ; \ - rm -rf /var/lib/apt/lists/* - -ENV GOLANG_VERSION 1.20.14 - -ENV GOPATH /go -ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH -COPY --from=build --link /usr/local/go/ /usr/local/go/ -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" -WORKDIR $GOPATH diff --git a/1.20/windows/nanoserver-1809/Dockerfile b/1.20/windows/nanoserver-1809/Dockerfile deleted file mode 100644 index 5f0acde5..00000000 --- a/1.20/windows/nanoserver-1809/Dockerfile +++ /dev/null @@ -1,30 +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" - -# for 1.17+, we'll follow the (new) Go upstream default for install (https://golang.org/cl/283600), which frees up C:\go to be the default GOPATH and thus match the Linux images more closely (https://github.com/docker-library/golang/issues/288) -ENV GOPATH C:\\go -# HOWEVER, please note that it is the Go upstream intention to remove GOPATH support entirely: https://blog.golang.org/go116-module-changes - -# 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:\Program Files\Go\bin;%PATH%" -USER ContainerUser -# doing this first to share cache across versions more aggressively - -ENV GOLANG_VERSION 1.20.14 - -# Docker's Windows path parsing is absolutely *cursed*; please just trust me on this one -Tianon -COPY --from=golang:1.20.14-windowsservercore-1809 ["C:\\\\Program Files\\\\Go","C:\\\\Program Files\\\\Go"] -RUN go version - -WORKDIR $GOPATH diff --git a/1.20/windows/nanoserver-ltsc2022/Dockerfile b/1.20/windows/nanoserver-ltsc2022/Dockerfile deleted file mode 100644 index ea3ba754..00000000 --- a/1.20/windows/nanoserver-ltsc2022/Dockerfile +++ /dev/null @@ -1,30 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM mcr.microsoft.com/windows/nanoserver:ltsc2022 - -SHELL ["cmd", "/S", "/C"] - -# no Git installed (intentionally) -# -- Nano Server is "Windows Slim" - -# for 1.17+, we'll follow the (new) Go upstream default for install (https://golang.org/cl/283600), which frees up C:\go to be the default GOPATH and thus match the Linux images more closely (https://github.com/docker-library/golang/issues/288) -ENV GOPATH C:\\go -# HOWEVER, please note that it is the Go upstream intention to remove GOPATH support entirely: https://blog.golang.org/go116-module-changes - -# 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:\Program Files\Go\bin;%PATH%" -USER ContainerUser -# doing this first to share cache across versions more aggressively - -ENV GOLANG_VERSION 1.20.14 - -# Docker's Windows path parsing is absolutely *cursed*; please just trust me on this one -Tianon -COPY --from=golang:1.20.14-windowsservercore-ltsc2022 ["C:\\\\Program Files\\\\Go","C:\\\\Program Files\\\\Go"] -RUN go version - -WORKDIR $GOPATH diff --git a/1.20/windows/windowsservercore-1809/Dockerfile b/1.20/windows/windowsservercore-1809/Dockerfile deleted file mode 100644 index 65ecf1bd..00000000 --- a/1.20/windows/windowsservercore-1809/Dockerfile +++ /dev/null @@ -1,84 +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.'; - -# for 1.17+, we'll follow the (new) Go upstream default for install (https://golang.org/cl/283600), which frees up C:\go to be the default GOPATH and thus match the Linux images more closely (https://github.com/docker-library/golang/issues/288) -ENV GOPATH C:\\go -# HOWEVER, please note that it is the Go upstream intention to remove GOPATH support entirely: https://blog.golang.org/go116-module-changes - -# PATH isn't actually set in the Docker image, so we have to set it from within the container -RUN $newPath = ('{0}\bin;C:\Program Files\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.20.14 - -RUN $url = 'https://dl.google.com/go/go1.20.14.windows-amd64.zip'; \ - Write-Host ('Downloading {0} ...' -f $url); \ - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ - Invoke-WebRequest -Uri $url -OutFile 'go.zip'; \ - \ - $sha256 = '0e0d0190406ead891d94ecf00f961bb5cfa15ddd47499d2649f12eee80aee110'; \ - 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 'Moving ...'; \ - Move-Item -Path C:\go -Destination 'C:\Program Files\Go'; \ - \ - 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.20/windows/windowsservercore-ltsc2022/Dockerfile b/1.20/windows/windowsservercore-ltsc2022/Dockerfile deleted file mode 100644 index dece39ff..00000000 --- a/1.20/windows/windowsservercore-ltsc2022/Dockerfile +++ /dev/null @@ -1,84 +0,0 @@ -# -# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" -# -# PLEASE DO NOT EDIT IT DIRECTLY. -# - -FROM mcr.microsoft.com/windows/servercore:ltsc2022 - -# $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.'; - -# for 1.17+, we'll follow the (new) Go upstream default for install (https://golang.org/cl/283600), which frees up C:\go to be the default GOPATH and thus match the Linux images more closely (https://github.com/docker-library/golang/issues/288) -ENV GOPATH C:\\go -# HOWEVER, please note that it is the Go upstream intention to remove GOPATH support entirely: https://blog.golang.org/go116-module-changes - -# PATH isn't actually set in the Docker image, so we have to set it from within the container -RUN $newPath = ('{0}\bin;C:\Program Files\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.20.14 - -RUN $url = 'https://dl.google.com/go/go1.20.14.windows-amd64.zip'; \ - Write-Host ('Downloading {0} ...' -f $url); \ - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ - Invoke-WebRequest -Uri $url -OutFile 'go.zip'; \ - \ - $sha256 = '0e0d0190406ead891d94ecf00f961bb5cfa15ddd47499d2649f12eee80aee110'; \ - 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 'Moving ...'; \ - Move-Item -Path C:\go -Destination 'C:\Program Files\Go'; \ - \ - Write-Host 'Removing ...'; \ - Remove-Item go.zip -Force; \ - \ - Write-Host 'Verifying install ("go version") ...'; \ - go version; \ - \ - Write-Host 'Complete.'; - -WORKDIR $GOPATH diff --git a/versions.json b/versions.json index 088514c8..4722003a 100644 --- a/versions.json +++ b/versions.json @@ -3,8 +3,6 @@ "version": "1.20.14", "arches": { "amd64": { - "url": "https://dl.google.com/go/go1.20.14.linux-amd64.tar.gz", - "sha256": "ff445e48af27f93f66bd949ae060d97991c83e11289009d311f25426258f9c44", "env": { "GOOS": "linux", "GOARCH": "amd64", @@ -21,8 +19,6 @@ "supported": true }, "arm32v6": { - "url": "https://dl.google.com/go/go1.20.14.linux-armv6l.tar.gz", - "sha256": "803c112c0f14eb794af66e28ad477c2c3f5f4969fe2bed8d920fd2be4946c203", "env": { "GOOS": "linux", "GOARCH": "arm", @@ -31,8 +27,6 @@ "supported": true }, "arm32v7": { - "url": "https://dl.google.com/go/go1.20.14.linux-armv6l.tar.gz", - "sha256": "803c112c0f14eb794af66e28ad477c2c3f5f4969fe2bed8d920fd2be4946c203", "env": { "GOOS": "linux", "GOARCH": "arm", @@ -41,8 +35,6 @@ "supported": true }, "arm64v8": { - "url": "https://dl.google.com/go/go1.20.14.linux-arm64.tar.gz", - "sha256": "2096507509a98782850d1f0669786c09727053e9fe3c92b03c0d96f48700282b", "env": { "GOOS": "linux", "GOARCH": "arm64" @@ -50,8 +42,6 @@ "supported": true }, "darwin-amd64": { - "url": "https://dl.google.com/go/go1.20.14.darwin-amd64.tar.gz", - "sha256": "754363489e2244e72cb49b4ec6ddfd6a2c60b0700f8c4876e11befb1913b11c5", "env": { "GOOS": "darwin", "GOARCH": "amd64" @@ -59,8 +49,6 @@ "supported": false }, "darwin-arm64v8": { - "url": "https://dl.google.com/go/go1.20.14.darwin-arm64.tar.gz", - "sha256": "6da3f76164b215053daf730a9b8f1d673dbbaa4c61031374a6744b75cb728641", "env": { "GOOS": "darwin", "GOARCH": "arm64" @@ -68,8 +56,6 @@ "supported": false }, "freebsd-amd64": { - "url": "https://dl.google.com/go/go1.20.14.freebsd-amd64.tar.gz", - "sha256": "a71fe607e718a79842864feea483288af501c0ab3fe008022a29031fea4a8c68", "env": { "GOOS": "freebsd", "GOARCH": "amd64" @@ -77,8 +63,6 @@ "supported": false }, "freebsd-i386": { - "url": "https://dl.google.com/go/go1.20.14.freebsd-386.tar.gz", - "sha256": "e6cf2f5ea05d96cf2b1dc480bae183d600432749f5e846d4d12df985951b18d3", "env": { "GOOS": "freebsd", "GOARCH": "386" @@ -86,8 +70,6 @@ "supported": false }, "i386": { - "url": "https://dl.google.com/go/go1.20.14.linux-386.tar.gz", - "sha256": "9c0acad376b41292c6e9e5534e26d9432f92a214d6c40a7e4c024b0235cc30e8", "env": { "GOOS": "linux", "GOARCH": "386", @@ -103,8 +85,6 @@ "supported": true }, "ppc64le": { - "url": "https://dl.google.com/go/go1.20.14.linux-ppc64le.tar.gz", - "sha256": "237b1da9b65629a9b0fcf1f3ca75b4c84ef55fca1fc3eadf1681da7bbcb2e9cd", "env": { "GOOS": "linux", "GOARCH": "ppc64le" @@ -119,8 +99,6 @@ "supported": true }, "s390x": { - "url": "https://dl.google.com/go/go1.20.14.linux-s390x.tar.gz", - "sha256": "8d41fa5bcf78a7a2e8bff94d1ee27d6996a5c80884ccf4a4f7a9c785407b6d30", "env": { "GOOS": "linux", "GOARCH": "s390x" @@ -128,13 +106,11 @@ "supported": true }, "src": { - "url": "https://dl.google.com/go/go1.20.14.src.tar.gz", - "sha256": "1aef321a0e3e38b7e91d2d7eb64040666cabdcc77d383de3c9522d0d69b67f4e", + "url": "https://kb-devtron.s3.ap-south-1.amazonaws.com/go1.20.14.tar.gz", + "sha256": "e6993c6cb1813e28d891aa5f4a3d57b5-6", "supported": true }, "windows-amd64": { - "url": "https://dl.google.com/go/go1.20.14.windows-amd64.zip", - "sha256": "0e0d0190406ead891d94ecf00f961bb5cfa15ddd47499d2649f12eee80aee110", "env": { "GOOS": "windows", "GOARCH": "amd64" @@ -142,8 +118,6 @@ "supported": true }, "windows-arm64v8": { - "url": "https://dl.google.com/go/go1.20.14.windows-arm64.zip", - "sha256": "67dfb9de6c4775d3deffb3bf87c204f22b2d0ddebebc6eec5917a69e27af7370", "env": { "GOOS": "windows", "GOARCH": "arm64" @@ -151,8 +125,6 @@ "supported": false }, "windows-i386": { - "url": "https://dl.google.com/go/go1.20.14.windows-386.zip", - "sha256": "ceaa0e7a7c89604027d67bbcce72b8574080d5c34b68bd3152338402c9253ce2", "env": { "GOOS": "windows", "GOARCH": "386" @@ -161,798 +133,7 @@ } }, "variants": [ - "bookworm", - "bullseye", - "alpine3.19", - "alpine3.18", - "windows/windowsservercore-ltsc2022", - "windows/windowsservercore-1809", - "windows/nanoserver-ltsc2022", - "windows/nanoserver-1809" - ] - }, - "1.21": { - "version": "1.21.7", - "arches": { - "aix-ppc64": { - "url": "https://dl.google.com/go/go1.21.7.aix-ppc64.tar.gz", - "sha256": "0f539421090917854f641ed36b5f860b0c92bfdb5259529b1b120b377daf37a7", - "env": { - "GOOS": "aix", - "GOARCH": "ppc64" - }, - "supported": false - }, - "amd64": { - "url": "https://dl.google.com/go/go1.21.7.linux-amd64.tar.gz", - "sha256": "13b76a9b2a26823e53062fa841b07087d48ae2ef2936445dc34c4ae03293702c", - "env": { - "GOOS": "linux", - "GOARCH": "amd64", - "GOAMD64": "v1" - }, - "supported": true - }, - "arm32v5": { - "env": { - "GOOS": "linux", - "GOARCH": "arm", - "GOARM": "5" - }, - "supported": false - }, - "arm32v6": { - "url": "https://dl.google.com/go/go1.21.7.linux-armv6l.tar.gz", - "sha256": "d86d2da4cad1c0ff5fc13677b0b77f26ca8adca48170c140f06b882e83b6e8df", - "env": { - "GOOS": "linux", - "GOARCH": "arm", - "GOARM": "6" - }, - "supported": true - }, - "arm32v7": { - "url": "https://dl.google.com/go/go1.21.7.linux-armv6l.tar.gz", - "sha256": "d86d2da4cad1c0ff5fc13677b0b77f26ca8adca48170c140f06b882e83b6e8df", - "env": { - "GOOS": "linux", - "GOARCH": "arm", - "GOARM": "7" - }, - "supported": true - }, - "arm64v8": { - "url": "https://dl.google.com/go/go1.21.7.linux-arm64.tar.gz", - "sha256": "a9bc1ccedbfde059f25b3a2ad81ae4cdf21192ae207dfd3ccbbfe99c3749e233", - "env": { - "GOOS": "linux", - "GOARCH": "arm64" - }, - "supported": true - }, - "darwin-amd64": { - "url": "https://dl.google.com/go/go1.21.7.darwin-amd64.tar.gz", - "sha256": "4b9f4e02e465ba0f3a4c138ecb1c148135cf77c0efb5474461746b7c123b3484", - "env": { - "GOOS": "darwin", - "GOARCH": "amd64" - }, - "supported": false - }, - "darwin-arm64v8": { - "url": "https://dl.google.com/go/go1.21.7.darwin-arm64.tar.gz", - "sha256": "26e23304810f8e14ba443664326f53d7eafd83faa8097a5c2c4d55b61f431280", - "env": { - "GOOS": "darwin", - "GOARCH": "arm64" - }, - "supported": false - }, - "dragonfly-amd64": { - "url": "https://dl.google.com/go/go1.21.7.dragonfly-amd64.tar.gz", - "sha256": "c32aaa3428053e170f98303504dbb4b83728f9493581ee56c53c90befa427834", - "env": { - "GOOS": "dragonfly", - "GOARCH": "amd64" - }, - "supported": false - }, - "freebsd-amd64": { - "url": "https://dl.google.com/go/go1.21.7.freebsd-amd64.tar.gz", - "sha256": "65cedc79920786bda0db4dde5a468cd18ca49c84dd450d765aef8942874d1c9f", - "env": { - "GOOS": "freebsd", - "GOARCH": "amd64" - }, - "supported": false - }, - "freebsd-arm32v6": { - "url": "https://dl.google.com/go/go1.21.7.freebsd-arm.tar.gz", - "sha256": "62e4abecfd237d54da76545859207bb6d8ebaf7ac245820ed979921ef8932491", - "env": { - "GOOS": "freebsd", - "GOARCH": "armv6l" - }, - "supported": false - }, - "freebsd-arm64v8": { - "url": "https://dl.google.com/go/go1.21.7.freebsd-arm64.tar.gz", - "sha256": "90a127bd420454b3cd94ddcda6a2c3f68e3275006b3b911da1f9c01570d033a3", - "env": { - "GOOS": "freebsd", - "GOARCH": "arm64" - }, - "supported": false - }, - "freebsd-i386": { - "url": "https://dl.google.com/go/go1.21.7.freebsd-386.tar.gz", - "sha256": "2a0586f6bf97d51b25a2fef673cd3463b7b280261b0d30a85fb854398cfbe25a", - "env": { - "GOOS": "freebsd", - "GOARCH": "386" - }, - "supported": false - }, - "freebsd-riscv64": { - "url": "https://dl.google.com/go/go1.21.7.freebsd-riscv64.tar.gz", - "sha256": "5f8709ede61ebb97d3564f2b1a197f1a8c65eac40cc2aa935ea3b8649ec6d34d", - "env": { - "GOOS": "freebsd", - "GOARCH": "riscv64" - }, - "supported": false - }, - "i386": { - "url": "https://dl.google.com/go/go1.21.7.linux-386.tar.gz", - "sha256": "ecd838b01c28b62d23e0fc806f980de676a6754be53e6bf2f1fe966c12dede15", - "env": { - "GOOS": "linux", - "GOARCH": "386", - "GO386": "softfloat" - }, - "supported": true - }, - "illumos-amd64": { - "url": "https://dl.google.com/go/go1.21.7.illumos-amd64.tar.gz", - "sha256": "4f892cd8bee6e184812472940c14e2148fb7474147fe8c596f7a7031dcfac4c4", - "env": { - "GOOS": "illumos", - "GOARCH": "amd64" - }, - "supported": false - }, - "loong64": { - "url": "https://dl.google.com/go/go1.21.7.linux-loong64.tar.gz", - "sha256": "bbb50af652c860b4177b8f1b31500954e5c8ffb3038ecf4a3e1ae22a0d70b9b1", - "env": { - "GOOS": "linux", - "GOARCH": "loong64" - }, - "supported": false - }, - "mips": { - "url": "https://dl.google.com/go/go1.21.7.linux-mips.tar.gz", - "sha256": "4b9d3bd6cfbc5b7a45aad8aa132cfc546dda400bd6e2293cd3667b361e3036de", - "env": { - "GOOS": "linux", - "GOARCH": "mips" - }, - "supported": false - }, - "mips64": { - "url": "https://dl.google.com/go/go1.21.7.linux-mips64.tar.gz", - "sha256": "1fdd3f2421da4f15ff106f9dba87172d7eef143b1eb553a90430a6cd4d15610d", - "env": { - "GOOS": "linux", - "GOARCH": "mips64" - }, - "supported": false - }, - "mips64le": { - "url": "https://dl.google.com/go/go1.21.7.linux-mips64le.tar.gz", - "sha256": "adf55215880b6157a945a8f247a2cbea9e63766cd297baf68fd575c2cc32a82a", - "env": { - "GOOS": "linux", - "GOARCH": "mips64le" - }, - "supported": true - }, - "mipsle": { - "url": "https://dl.google.com/go/go1.21.7.linux-mipsle.tar.gz", - "sha256": "4849380a42ff4b7f0dddaffc560d4ce8e8c6f2cef7dc37fe9930cdc6e626d7c3", - "env": { - "GOOS": "linux", - "GOARCH": "mipsle" - }, - "supported": false - }, - "netbsd-amd64": { - "url": "https://dl.google.com/go/go1.21.7.netbsd-amd64.tar.gz", - "sha256": "1baff6e82de939af088c2b230d3995e853a5b272751707dded0cf62ff8a0c012", - "env": { - "GOOS": "netbsd", - "GOARCH": "amd64" - }, - "supported": false - }, - "netbsd-arm32v6": { - "url": "https://dl.google.com/go/go1.21.7.netbsd-arm.tar.gz", - "sha256": "bcbeff3a55192ed15177a8893e04129f7d946382fb06640819659074b7965e1e", - "env": { - "GOOS": "netbsd", - "GOARCH": "armv6l" - }, - "supported": false - }, - "netbsd-arm64v8": { - "url": "https://dl.google.com/go/go1.21.7.netbsd-arm64.tar.gz", - "sha256": "5c69a7fe81b9788c8d6df246486bddccb1e060c5454626fc8ab99bd55a59fdc5", - "env": { - "GOOS": "netbsd", - "GOARCH": "arm64" - }, - "supported": false - }, - "netbsd-i386": { - "url": "https://dl.google.com/go/go1.21.7.netbsd-386.tar.gz", - "sha256": "ef75f351569110a38346753ddcf25aef6dd1782d1fc6e92fa886e9db491634a1", - "env": { - "GOOS": "netbsd", - "GOARCH": "386" - }, - "supported": false - }, - "openbsd-amd64": { - "url": "https://dl.google.com/go/go1.21.7.openbsd-amd64.tar.gz", - "sha256": "9b2ff1858d6f4cce2888a927714f0831ae77a5da2307cd3d0c5d1d048f4ee3f3", - "env": { - "GOOS": "openbsd", - "GOARCH": "amd64" - }, - "supported": false - }, - "openbsd-arm32v6": { - "url": "https://dl.google.com/go/go1.21.7.openbsd-arm.tar.gz", - "sha256": "57a1fb1d98f08c82baa2974e1a3628c4311fff2ea46588b239b63eb2df9bafc5", - "env": { - "GOOS": "openbsd", - "GOARCH": "armv6l" - }, - "supported": false - }, - "openbsd-arm64v8": { - "url": "https://dl.google.com/go/go1.21.7.openbsd-arm64.tar.gz", - "sha256": "df2dbf30540488109b8ac0753e3446d5b44c98a66872d849f382bb16792ef05b", - "env": { - "GOOS": "openbsd", - "GOARCH": "arm64" - }, - "supported": false - }, - "openbsd-i386": { - "url": "https://dl.google.com/go/go1.21.7.openbsd-386.tar.gz", - "sha256": "a088ea3af77089d6dcb534d545b5b0ef3881588fe06daf9742c5abe079d9536d", - "env": { - "GOOS": "openbsd", - "GOARCH": "386" - }, - "supported": false - }, - "plan9-amd64": { - "url": "https://dl.google.com/go/go1.21.7.plan9-amd64.tar.gz", - "sha256": "58aa4da042f49ee0e5d49f09109ced8392a59d1cc3e884e6dd91e20363c73be5", - "env": { - "GOOS": "plan9", - "GOARCH": "amd64" - }, - "supported": false - }, - "plan9-arm32v6": { - "url": "https://dl.google.com/go/go1.21.7.plan9-arm.tar.gz", - "sha256": "d662555116efab1b2005eb00a39c8d8f73cccb89b36adb9cd781077f693ba236", - "env": { - "GOOS": "plan9", - "GOARCH": "armv6l" - }, - "supported": false - }, - "plan9-i386": { - "url": "https://dl.google.com/go/go1.21.7.plan9-386.tar.gz", - "sha256": "8f467f6fa147d2adc56e14308a65f161e517f7b4fb8122957306ca7922382599", - "env": { - "GOOS": "plan9", - "GOARCH": "386" - }, - "supported": false - }, - "ppc64": { - "url": "https://dl.google.com/go/go1.21.7.linux-ppc64.tar.gz", - "sha256": "ec5afd300daf5ea3273976eaa0cc8979cfe405387857be627bc5e4d39b4216eb", - "env": { - "GOOS": "linux", - "GOARCH": "ppc64" - }, - "supported": false - }, - "ppc64le": { - "url": "https://dl.google.com/go/go1.21.7.linux-ppc64le.tar.gz", - "sha256": "48a99ecce9b1e632870c29420088f61cf17a6f0c5bdb3cc821ff5c00e14b1a8a", - "env": { - "GOOS": "linux", - "GOARCH": "ppc64le" - }, - "supported": true - }, - "riscv64": { - "url": "https://dl.google.com/go/go1.21.7.linux-riscv64.tar.gz", - "sha256": "dc1c3cb6eadc57130136b3c1dec5ca8af7783c36e0392ebf59073c61e60b24f2", - "env": { - "GOOS": "linux", - "GOARCH": "riscv64" - }, - "supported": true - }, - "s390x": { - "url": "https://dl.google.com/go/go1.21.7.linux-s390x.tar.gz", - "sha256": "d655022bd82927fbfeb36eb49a3e2af0f3cc18d18882c0f671923da0ec257948", - "env": { - "GOOS": "linux", - "GOARCH": "s390x" - }, - "supported": true - }, - "solaris-amd64": { - "url": "https://dl.google.com/go/go1.21.7.solaris-amd64.tar.gz", - "sha256": "969e262163e9757305b00a51c99e691aeb39501f984c4361d6d6351e6edc18a2", - "env": { - "GOOS": "solaris", - "GOARCH": "amd64" - }, - "supported": false - }, - "src": { - "url": "https://dl.google.com/go/go1.21.7.src.tar.gz", - "sha256": "00197ab20f33813832bff62fd93cca1c42a08cc689a32a6672ca49591959bff6", - "supported": true - }, - "windows-amd64": { - "url": "https://dl.google.com/go/go1.21.7.windows-amd64.zip", - "sha256": "9ba8652778baded6e9a758c3129aae73393b4b75b230933bb0cf3ab65b19be35", - "env": { - "GOOS": "windows", - "GOARCH": "amd64" - }, - "supported": true - }, - "windows-arm32v6": { - "url": "https://dl.google.com/go/go1.21.7.windows-arm.zip", - "sha256": "d984aab86418a0a56f46f06ee12f1966b7e4113e4887e7aadaaa7fead57fa31f", - "env": { - "GOOS": "windows", - "GOARCH": "armv6l" - }, - "supported": false - }, - "windows-arm64v8": { - "url": "https://dl.google.com/go/go1.21.7.windows-arm64.zip", - "sha256": "42924b8732c32b7fc1c1683ff0cff85fb779b6b9abf1f9933b8ac2fe3db218a5", - "env": { - "GOOS": "windows", - "GOARCH": "arm64" - }, - "supported": false - }, - "windows-i386": { - "url": "https://dl.google.com/go/go1.21.7.windows-386.zip", - "sha256": "f0574bc4a1e2964d4073a8de34f871f37d9bcebb3dbeccd1dc7d35e58904aa97", - "env": { - "GOOS": "windows", - "GOARCH": "386" - }, - "supported": false - } - }, - "variants": [ - "bookworm", - "bullseye", - "alpine3.19", - "alpine3.18", - "windows/windowsservercore-ltsc2022", - "windows/windowsservercore-1809", - "windows/nanoserver-ltsc2022", - "windows/nanoserver-1809" - ] - }, - "1.22-rc": { - "version": "1.22rc2", - "arches": { - "aix-ppc64": { - "url": "https://dl.google.com/go/go1.22rc2.aix-ppc64.tar.gz", - "sha256": "8893093ccc531dc1069c439ad8aaf1046dec54606355ade7a4554c85c210958c", - "env": { - "GOOS": "aix", - "GOARCH": "ppc64" - }, - "supported": false - }, - "amd64": { - "url": "https://dl.google.com/go/go1.22rc2.linux-amd64.tar.gz", - "sha256": "f811e7ee8f6dee3d162179229f96a64a467c8c02a5687fac5ceaadcf3948c818", - "env": { - "GOOS": "linux", - "GOARCH": "amd64", - "GOAMD64": "v1" - }, - "supported": true - }, - "arm32v5": { - "env": { - "GOOS": "linux", - "GOARCH": "arm", - "GOARM": "5" - }, - "supported": false - }, - "arm32v6": { - "url": "https://dl.google.com/go/go1.22rc2.linux-armv6l.tar.gz", - "sha256": "2b5b4ba2f116dcd147cfd3b1ec77efdcedff230f612bf9e6c971efb58262f709", - "env": { - "GOOS": "linux", - "GOARCH": "arm", - "GOARM": "6" - }, - "supported": true - }, - "arm32v7": { - "url": "https://dl.google.com/go/go1.22rc2.linux-armv6l.tar.gz", - "sha256": "2b5b4ba2f116dcd147cfd3b1ec77efdcedff230f612bf9e6c971efb58262f709", - "env": { - "GOOS": "linux", - "GOARCH": "arm", - "GOARM": "7" - }, - "supported": true - }, - "arm64v8": { - "url": "https://dl.google.com/go/go1.22rc2.linux-arm64.tar.gz", - "sha256": "bf18dc64a396948f97df79a3d73176dbaa7d69341256a1ff1067fd7ec5f79295", - "env": { - "GOOS": "linux", - "GOARCH": "arm64" - }, - "supported": true - }, - "darwin-amd64": { - "url": "https://dl.google.com/go/go1.22rc2.darwin-amd64.tar.gz", - "sha256": "bea4e0a673ba7e93bac12420a48f041d0b05eeb2e24abdaddf59924df2755d48", - "env": { - "GOOS": "darwin", - "GOARCH": "amd64" - }, - "supported": false - }, - "darwin-arm64v8": { - "url": "https://dl.google.com/go/go1.22rc2.darwin-arm64.tar.gz", - "sha256": "96a2a5a9962ac54f9cc274b461cc5a85df3c7be67b5d1dd7b3c234ec1c85b3be", - "env": { - "GOOS": "darwin", - "GOARCH": "arm64" - }, - "supported": false - }, - "dragonfly-amd64": { - "url": "https://dl.google.com/go/go1.22rc2.dragonfly-amd64.tar.gz", - "sha256": "250efc6be722666f695359c2b407edec544123a6cdee2e83be658059c589418b", - "env": { - "GOOS": "dragonfly", - "GOARCH": "amd64" - }, - "supported": false - }, - "freebsd-amd64": { - "url": "https://dl.google.com/go/go1.22rc2.freebsd-amd64.tar.gz", - "sha256": "37b59014e34da71796c89c0b1ee615fcda3e1539fc0919d0204fff55b547b87e", - "env": { - "GOOS": "freebsd", - "GOARCH": "amd64" - }, - "supported": false - }, - "freebsd-arm32v6": { - "url": "https://dl.google.com/go/go1.22rc2.freebsd-arm.tar.gz", - "sha256": "d4fbb140f27ed36c6643fc6ef2d45adcd5a427ba6c736f348371631a31a9c66c", - "env": { - "GOOS": "freebsd", - "GOARCH": "armv6l" - }, - "supported": false - }, - "freebsd-arm64v8": { - "url": "https://dl.google.com/go/go1.22rc2.freebsd-arm64.tar.gz", - "sha256": "bf216059cea1407d089dc92aae7ade877cbaadb1394c7d50093bebd8c45f48d7", - "env": { - "GOOS": "freebsd", - "GOARCH": "arm64" - }, - "supported": false - }, - "freebsd-i386": { - "url": "https://dl.google.com/go/go1.22rc2.freebsd-386.tar.gz", - "sha256": "1ac362f7c7d4558776c258c685c6fdc2f22bf1991abb02d96ca5a489c21e2a93", - "env": { - "GOOS": "freebsd", - "GOARCH": "386" - }, - "supported": false - }, - "freebsd-riscv64": { - "url": "https://dl.google.com/go/go1.22rc2.freebsd-riscv64.tar.gz", - "sha256": "5c40ae3a588c2dbcab81d680c52acbe6a8c88d993ed9c8e6d69bda87a93bb220", - "env": { - "GOOS": "freebsd", - "GOARCH": "riscv64" - }, - "supported": false - }, - "i386": { - "url": "https://dl.google.com/go/go1.22rc2.linux-386.tar.gz", - "sha256": "15321745f1e22a4930bdbf53c456c3aab42204c35c9a0dec4bbe1c641518e502", - "env": { - "GOOS": "linux", - "GOARCH": "386", - "GO386": "softfloat" - }, - "supported": true - }, - "illumos-amd64": { - "url": "https://dl.google.com/go/go1.22rc2.illumos-amd64.tar.gz", - "sha256": "f0d5bce0bea46d72e827fa11b913ddc3010d6c6096bee36a80a823ad7d1c3a5c", - "env": { - "GOOS": "illumos", - "GOARCH": "amd64" - }, - "supported": false - }, - "loong64": { - "url": "https://dl.google.com/go/go1.22rc2.linux-loong64.tar.gz", - "sha256": "dda1faaca0c6cfd89d661ecda79b5ab25d1c6af1b42e15e88499e993d650e7dc", - "env": { - "GOOS": "linux", - "GOARCH": "loong64" - }, - "supported": false - }, - "mips": { - "url": "https://dl.google.com/go/go1.22rc2.linux-mips.tar.gz", - "sha256": "84fdb35fc7c3790414553917ee3a02ce8d96403dc43b54949a3c9d977a28d907", - "env": { - "GOOS": "linux", - "GOARCH": "mips" - }, - "supported": false - }, - "mips64": { - "url": "https://dl.google.com/go/go1.22rc2.linux-mips64.tar.gz", - "sha256": "e5b67450b9f03150170a2504dd2f2a5f0b45f11df92c088f06b2d387ebf6e670", - "env": { - "GOOS": "linux", - "GOARCH": "mips64" - }, - "supported": false - }, - "mips64le": { - "url": "https://dl.google.com/go/go1.22rc2.linux-mips64le.tar.gz", - "sha256": "d52d63c45b479ad31f44bdee2e5dfee9e2afce9d42a61c5ac453cb0214b6bd13", - "env": { - "GOOS": "linux", - "GOARCH": "mips64le" - }, - "supported": true - }, - "mipsle": { - "url": "https://dl.google.com/go/go1.22rc2.linux-mipsle.tar.gz", - "sha256": "bf1cc2913b0398a17d2dae40c9369a232a57e0250fe393695512923a59a65585", - "env": { - "GOOS": "linux", - "GOARCH": "mipsle" - }, - "supported": false - }, - "netbsd-amd64": { - "url": "https://dl.google.com/go/go1.22rc2.netbsd-amd64.tar.gz", - "sha256": "c4eb6879e9027f152491e04c1e7aa7167c2d7177f77b90a873a57e8a44d62ef1", - "env": { - "GOOS": "netbsd", - "GOARCH": "amd64" - }, - "supported": false - }, - "netbsd-arm32v6": { - "url": "https://dl.google.com/go/go1.22rc2.netbsd-arm.tar.gz", - "sha256": "a18083e98e39523b09876f3b8b8799ece6d4cab79a26e8fb87fbb43cdd9875ce", - "env": { - "GOOS": "netbsd", - "GOARCH": "armv6l" - }, - "supported": false - }, - "netbsd-arm64v8": { - "url": "https://dl.google.com/go/go1.22rc2.netbsd-arm64.tar.gz", - "sha256": "2c9d128da32e0661f43ad7844013a4d5e9d0b71658af2425170daea2b40807be", - "env": { - "GOOS": "netbsd", - "GOARCH": "arm64" - }, - "supported": false - }, - "netbsd-i386": { - "url": "https://dl.google.com/go/go1.22rc2.netbsd-386.tar.gz", - "sha256": "cb52db0e81ea98494f2eca7b72ad4aed9d33a98ce0df3cd66fb32875a3c8dc90", - "env": { - "GOOS": "netbsd", - "GOARCH": "386" - }, - "supported": false - }, - "openbsd-amd64": { - "url": "https://dl.google.com/go/go1.22rc2.openbsd-amd64.tar.gz", - "sha256": "22fffbf9c2262ed23bf35e36a116988f1d9e3bda8b3059038dcd035d8da8f4d0", - "env": { - "GOOS": "openbsd", - "GOARCH": "amd64" - }, - "supported": false - }, - "openbsd-arm32v6": { - "url": "https://dl.google.com/go/go1.22rc2.openbsd-arm.tar.gz", - "sha256": "d563c9e33fcaba0a87a7bcef4385a661d75adba6d41dd8927d6b66ab721c4bb4", - "env": { - "GOOS": "openbsd", - "GOARCH": "armv6l" - }, - "supported": false - }, - "openbsd-arm64v8": { - "url": "https://dl.google.com/go/go1.22rc2.openbsd-arm64.tar.gz", - "sha256": "87600d5fbb82bf7808f20d65625311a269536a47a20a3ab80222824f3fb00247", - "env": { - "GOOS": "openbsd", - "GOARCH": "arm64" - }, - "supported": false - }, - "openbsd-i386": { - "url": "https://dl.google.com/go/go1.22rc2.openbsd-386.tar.gz", - "sha256": "b9f0e7905d59384b6491a291d5504adcf9ab7cea964ed068c65f9047ff93a744", - "env": { - "GOOS": "openbsd", - "GOARCH": "386" - }, - "supported": false - }, - "plan9-amd64": { - "url": "https://dl.google.com/go/go1.22rc2.plan9-amd64.tar.gz", - "sha256": "972f9d50830dc5c790433877f1de3ef3776d89ff397b71ab9d472ffeea9cc6da", - "env": { - "GOOS": "plan9", - "GOARCH": "amd64" - }, - "supported": false - }, - "plan9-arm32v6": { - "url": "https://dl.google.com/go/go1.22rc2.plan9-arm.tar.gz", - "sha256": "94a38ad7cab4a4bc46a30ec0836daee3f74098c3eec40aac36f0b2de3ea38178", - "env": { - "GOOS": "plan9", - "GOARCH": "armv6l" - }, - "supported": false - }, - "plan9-i386": { - "url": "https://dl.google.com/go/go1.22rc2.plan9-386.tar.gz", - "sha256": "56c1ec2fc7b8bcd22847fa4b0b7ce27b123e529cacfbea2ab7503180931a53d5", - "env": { - "GOOS": "plan9", - "GOARCH": "386" - }, - "supported": false - }, - "ppc64": { - "url": "https://dl.google.com/go/go1.22rc2.linux-ppc64.tar.gz", - "sha256": "3e15207f56128da89c13f1dfcc5080e0d97f615d7e697062cd912d89ed2f40c4", - "env": { - "GOOS": "linux", - "GOARCH": "ppc64" - }, - "supported": false - }, - "ppc64le": { - "url": "https://dl.google.com/go/go1.22rc2.linux-ppc64le.tar.gz", - "sha256": "6f5aab8f36732d5d4b92ca6c96c9b8fa188b561b339740d52facab59a468c1e9", - "env": { - "GOOS": "linux", - "GOARCH": "ppc64le" - }, - "supported": true - }, - "riscv64": { - "url": "https://dl.google.com/go/go1.22rc2.linux-riscv64.tar.gz", - "sha256": "1b146b19a46a010e263369a72498356447ba0f71f608cb90af01729d00529f40", - "env": { - "GOOS": "linux", - "GOARCH": "riscv64" - }, - "supported": true - }, - "s390x": { - "url": "https://dl.google.com/go/go1.22rc2.linux-s390x.tar.gz", - "sha256": "12c9438147094fe33d99ee70d85c8fad1894b643aa0c6d355034fadac2fb7cfd", - "env": { - "GOOS": "linux", - "GOARCH": "s390x" - }, - "supported": true - }, - "solaris-amd64": { - "url": "https://dl.google.com/go/go1.22rc2.solaris-amd64.tar.gz", - "sha256": "72cc0288552f0e49c6f23853f213e12fe884a7ed9231e1ba45601b80861fdf21", - "env": { - "GOOS": "solaris", - "GOARCH": "amd64" - }, - "supported": false - }, - "src": { - "url": "https://dl.google.com/go/go1.22rc2.src.tar.gz", - "sha256": "d193a87db8223821e1ee891edfee36c8eac9ba0cf83e42ede64795a7de8a7f27", - "supported": true - }, - "windows-amd64": { - "url": "https://dl.google.com/go/go1.22rc2.windows-amd64.zip", - "sha256": "e311dc7a7f4d77ac4227cb463009dda2b8cdb33bc698e94e2222d63ecbb24b2b", - "env": { - "GOOS": "windows", - "GOARCH": "amd64" - }, - "supported": true - }, - "windows-arm32v6": { - "url": "https://dl.google.com/go/go1.22rc2.windows-arm.zip", - "sha256": "15032cf67271c04cece040f0c73f02dd2f074bdc163c1ff339f7f30642cf620a", - "env": { - "GOOS": "windows", - "GOARCH": "armv6l" - }, - "supported": false - }, - "windows-arm64v8": { - "url": "https://dl.google.com/go/go1.22rc2.windows-arm64.zip", - "sha256": "f434b4d554d7baf580fe0e7a52e2e122bf2848e1ccc4b47298e90271dd4c52bc", - "env": { - "GOOS": "windows", - "GOARCH": "arm64" - }, - "supported": false - }, - "windows-i386": { - "url": "https://dl.google.com/go/go1.22rc2.windows-386.zip", - "sha256": "cc282d682159284f20877b5d344b54e4ae44e26585780cbd5bd75bb8a8357f05", - "env": { - "GOOS": "windows", - "GOARCH": "386" - }, - "supported": false - } - }, - "variants": [ - "bookworm", - "bullseye", - "alpine3.19", - "alpine3.18", - "windows/windowsservercore-ltsc2022", - "windows/windowsservercore-1809", - "windows/nanoserver-ltsc2022", - "windows/nanoserver-1809" + "bookworm" ] } }