Skip to content

Commit 768ed6e

Browse files
Support Go 1.22 (#950)
1 parent 9c2a2e1 commit 768ed6e

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

src/go/.devcontainer/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# [Choice] Go version (use -bookworm, or -bullseye variants on local arm64/Apple Silicon): 1, 1.21, 1.20, 1-bookworm, 1.21-bookworm, 1.20-bookworm, 1-bullseye, 1.21-bullseye, 1.20-bullseye
2-
ARG VARIANT=1.21-bookworm
1+
ARG VARIANT=1.22-bookworm
32
FROM golang:${VARIANT}
43

54
# [Optional] Uncomment the next line to use go get to install anything else you need

src/go/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
| *Categories* | Core, Languages |
1111
| *Definition type* | Dockerfile |
1212
| *Published images* | mcr.microsoft.com/devcontainers/go |
13-
| *Available image variants* | 1 / 1-bookworm, 1.21 / 1.21-bookworm, 1.20 / 1.20-bookworm, 1-bullseye, 1.21-bullseye, 1.20-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/go/tags/list)) |
13+
| *Available image variants* | 1 / 1-bookworm, 1.22 / 1.22-bookworm, 1.21 / 1.21-bookworm, 1.20 / 1.20-bookworm, 1-bullseye, 1.22-bullseye, 1.21-bullseye, 1.20-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/go/tags/list)) |
1414
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, and `bullseye` variants |
1515
| *Container host OS support* | Linux, macOS, Windows |
1616
| *Container OS* | Debian |
@@ -24,6 +24,7 @@ You can directly reference pre-built versions of `Dockerfile` by using the `imag
2424

2525
- `mcr.microsoft.com/devcontainers/go` (latest)
2626
- `mcr.microsoft.com/devcontainers/go:1` (or `1-bookworm`, `1-bullseye` to pin to an OS version)
27+
- `mcr.microsoft.com/devcontainers/go:1.22` (or `1.22-bookworm`, `1.22-bullseye` to pin to an OS version)
2728
- `mcr.microsoft.com/devcontainers/go:1.21` (or `1.21-bookworm`, `1.21-bullseye` to pin to an OS version)
2829
- `mcr.microsoft.com/devcontainers/go:1.20` (or `1.20-bookworm`, `1.20-bullseye` to pin to an OS version)
2930

src/go/manifest.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
11
{
22
"version": "1.1.7",
33
"variants": [
4+
"1.22-bookworm",
45
"1.21-bookworm",
56
"1.20-bookworm",
7+
"1.22-bullseye",
68
"1.21-bullseye",
79
"1.20-bullseye"
810
],
911
"build": {
10-
"latest": "1.21-bookworm",
12+
"latest": "1.22-bookworm",
1113
"rootDistro": "debian",
1214
"tags": [
1315
"go:${VERSION}-${VARIANT}"
1416
],
1517
"architectures": {
18+
"1.22-bookworm": [
19+
"linux/amd64",
20+
"linux/arm64"
21+
],
1622
"1.21-bookworm": [
1723
"linux/amd64",
1824
"linux/arm64"
1925
],
2026
"1.20-bookworm": [
2127
"linux/amd64",
2228
"linux/arm64"
29+
],
30+
"1.22-bullseye": [
31+
"linux/amd64",
32+
"linux/arm64"
2333
],
2434
"1.21-bullseye": [
2535
"linux/amd64",
@@ -31,15 +41,18 @@
3141
]
3242
},
3343
"variantTags": {
34-
"1.21-bookworm": [
35-
"go:${VERSION}-1.21",
44+
"1.22-bookworm": [
45+
"go:${VERSION}-1.22",
3646
"go:${VERSION}-1",
3747
"go:${VERSION}-1-bookworm",
3848
"go:${VERSION}-bookworm"
3949
],
40-
"1.21-bullseye": [
50+
"1.22-bullseye": [
4151
"go:${VERSION}-1-bullseye",
4252
"go:${VERSION}-bullseye"
53+
],
54+
"1.21-bookworm": [
55+
"go:${VERSION}-1.21"
4356
],
4457
"1.20-bookworm": [
4558
"go:${VERSION}-1.20"

0 commit comments

Comments
 (0)