docker-library / golang

Docker Official Image packaging for golang
https://golang.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 502 forks source link

Add 1.22rc1 #500

Closed tianon closed 6 months ago

tianon commented 6 months ago
// Go 1.22 and later requires Go 1.20 as the bootstrap toolchain.

doh, I didn't realize they'd bumped the baseline all the way to Go 1.20 already :sob:

Edit: ref: https://github.com/golang/go/issues/54265 -- also, that means 1.24 will require 1.22, so this will get worse/harder over time, not easier

tianon commented 6 months ago

After reviewing the details (and how "ouroboros" it would be to solve this "properly", especially in the face of the long-term implications of https://github.com/golang/go/issues/54265), my updated proposal is that we effectively revert https://github.com/docker-library/golang/pull/335 for 1.21+ -- as of Go 1.21, the only architecture we actually build from source across all our supported variants/distributions is arm32v5 (Debian's armel) because Go's published arm binaries are explicitly v6 (see also #314).

The only suggestion of actual arm32v5 users I've managed to find is https://github.com/docker-library/golang/issues/263, which is someone on one of the older Raspberry Pi devices (which are technically armv6) wanting to use a Debian-based image -- as of 1.21, the Alpine images are using the exact same upstream-provided pre-compiled binaries, so suggesting that those users switch to Alpine's arm32v6 images instead is extremely reasonable.

I will be updating this shortly.

tianon commented 6 months ago
Diff: ```diff $ diff -u <(bashbrew cat golang) <(bashbrew cat <(./generate-stackbrew-library.sh)) --- /dev/fd/63 2023-12-19 15:34:14.147333988 -0800 +++ /dev/fd/62 2023-12-19 15:34:14.135333892 -0800 @@ -1,25 +1,74 @@ Maintainers: Tianon Gravi (@tianon), Joseph Ferguson (@yosifkit), Johan Euphrosine (@proppy) GitRepo: https://github.com/docker-library/golang.git +Tags: 1.22rc1-bookworm, 1.22-rc-bookworm +SharedTags: 1.22rc1, 1.22-rc +Architectures: amd64, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x +GitCommit: 8188fe464dc344c8ac20cad12cf80e65f452af93 +Directory: 1.22-rc/bookworm + +Tags: 1.22rc1-bullseye, 1.22-rc-bullseye +Architectures: amd64, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x +GitCommit: 8188fe464dc344c8ac20cad12cf80e65f452af93 +Directory: 1.22-rc/bullseye + +Tags: 1.22rc1-alpine3.19, 1.22-rc-alpine3.19, 1.22rc1-alpine, 1.22-rc-alpine +Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x +GitCommit: 8188fe464dc344c8ac20cad12cf80e65f452af93 +Directory: 1.22-rc/alpine3.19 + +Tags: 1.22rc1-alpine3.18, 1.22-rc-alpine3.18 +Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x +GitCommit: 8188fe464dc344c8ac20cad12cf80e65f452af93 +Directory: 1.22-rc/alpine3.18 + +Tags: 1.22rc1-windowsservercore-ltsc2022, 1.22-rc-windowsservercore-ltsc2022 +SharedTags: 1.22rc1-windowsservercore, 1.22-rc-windowsservercore, 1.22rc1, 1.22-rc +Architectures: windows-amd64 +GitCommit: 46d44c197aa3ce81c16ad43a2e4b331cc188053a +Directory: 1.22-rc/windows/windowsservercore-ltsc2022 +Constraints: windowsservercore-ltsc2022 + +Tags: 1.22rc1-windowsservercore-1809, 1.22-rc-windowsservercore-1809 +SharedTags: 1.22rc1-windowsservercore, 1.22-rc-windowsservercore, 1.22rc1, 1.22-rc +Architectures: windows-amd64 +GitCommit: 46d44c197aa3ce81c16ad43a2e4b331cc188053a +Directory: 1.22-rc/windows/windowsservercore-1809 +Constraints: windowsservercore-1809 + +Tags: 1.22rc1-nanoserver-ltsc2022, 1.22-rc-nanoserver-ltsc2022 +SharedTags: 1.22rc1-nanoserver, 1.22-rc-nanoserver +Architectures: windows-amd64 +GitCommit: 46d44c197aa3ce81c16ad43a2e4b331cc188053a +Directory: 1.22-rc/windows/nanoserver-ltsc2022 +Constraints: nanoserver-ltsc2022, windowsservercore-ltsc2022 + +Tags: 1.22rc1-nanoserver-1809, 1.22-rc-nanoserver-1809 +SharedTags: 1.22rc1-nanoserver, 1.22-rc-nanoserver +Architectures: windows-amd64 +GitCommit: 46d44c197aa3ce81c16ad43a2e4b331cc188053a +Directory: 1.22-rc/windows/nanoserver-1809 +Constraints: nanoserver-1809, windowsservercore-1809 + Tags: 1.21.5-bookworm, 1.21-bookworm, 1-bookworm, bookworm SharedTags: 1.21.5, 1.21, 1, latest -Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x -GitCommit: 40db26d6cc395e12ec499d7d88c77ee5f6dbe912 +Architectures: amd64, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x +GitCommit: 8188fe464dc344c8ac20cad12cf80e65f452af93 Directory: 1.21/bookworm Tags: 1.21.5-bullseye, 1.21-bullseye, 1-bullseye, bullseye -Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x -GitCommit: 40db26d6cc395e12ec499d7d88c77ee5f6dbe912 +Architectures: amd64, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x +GitCommit: 8188fe464dc344c8ac20cad12cf80e65f452af93 Directory: 1.21/bullseye Tags: 1.21.5-alpine3.19, 1.21-alpine3.19, 1-alpine3.19, alpine3.19, 1.21.5-alpine, 1.21-alpine, 1-alpine, alpine Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x -GitCommit: 40db26d6cc395e12ec499d7d88c77ee5f6dbe912 +GitCommit: 8188fe464dc344c8ac20cad12cf80e65f452af93 Directory: 1.21/alpine3.19 Tags: 1.21.5-alpine3.18, 1.21-alpine3.18, 1-alpine3.18, alpine3.18 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x -GitCommit: 40db26d6cc395e12ec499d7d88c77ee5f6dbe912 +GitCommit: 8188fe464dc344c8ac20cad12cf80e65f452af93 Directory: 1.21/alpine3.18 Tags: 1.21.5-windowsservercore-ltsc2022, 1.21-windowsservercore-ltsc2022, 1-windowsservercore-ltsc2022, windowsservercore-ltsc2022 @@ -63,12 +112,12 @@ Tags: 1.20.12-alpine3.19, 1.20-alpine3.19, 1.20.12-alpine, 1.20-alpine Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x -GitCommit: 84f47a944aa3d10104ad45dd8a188b878595cac4 +GitCommit: 8188fe464dc344c8ac20cad12cf80e65f452af93 Directory: 1.20/alpine3.19 Tags: 1.20.12-alpine3.18, 1.20-alpine3.18 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x -GitCommit: 339da23255a9dc00f7921fca9a022f6b95843358 +GitCommit: 8188fe464dc344c8ac20cad12cf80e65f452af93 Directory: 1.20/alpine3.18 Tags: 1.20.12-windowsservercore-ltsc2022, 1.20-windowsservercore-ltsc2022 ```