Skip to content

Commit b72835d

Browse files
chore: support go 1.23 (devcontainers#1160)
* chore: support go 1.23 * fix: whitespace * chore: apply suggestions from code review Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com> * chore: changes according to reviews --------- Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
1 parent c832366 commit b72835d

File tree

3 files changed

+36
-23
lines changed

3 files changed

+36
-23
lines changed

src/go/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VARIANT=1.22-bookworm
1+
ARG VARIANT=1.23-bookworm
22
FROM golang:${VARIANT}
33

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

src/go/README.md

Lines changed: 6 additions & 6 deletions
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.22 / 1.22-bookworm, 1.21 / 1.21-bookworm, 1-bullseye, 1.22-bullseye, 1.21-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/go/tags/list)) |
13+
| *Available image variants* | 1 / 1-bookworm, 1.23 / 1.23-bookworm, 1.22 / 1.22-bookworm, 1-bullseye, 1.22-bullseye, 1.21-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,18 +24,18 @@ 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.23` (or `1.23-bookworm`, `1.23-bullseye` to pin to an OS version)
2728
- `mcr.microsoft.com/devcontainers/go:1.22` (or `1.22-bookworm`, `1.22-bullseye` to pin to an OS version)
28-
- `mcr.microsoft.com/devcontainers/go:1.21` (or `1.21-bookworm`, `1.21-bullseye` to pin to an OS version)
2929

3030
Refer to [this guide](https://containers.dev/guide/dockerfile) for more details.
3131

3232
You can decide how often you want updates by referencing a [semantic version](https://semver.org/) of each image. For example:
3333

34-
- `mcr.microsoft.com/devcontainers/go:1-1.22` (or `1-1.22-bookworm`, `1-1.22-bullseye`)
35-
- `mcr.microsoft.com/devcontainers/go:1.1-1.22` (or `1.1-1.22-bookworm`, `1.1-1.22-bullseye`)
36-
- `mcr.microsoft.com/devcontainers/go:1.1.9-1.22` (or `1.1.9-1.22-bookworm`, `1.1.9-1.22-bullseye`)
34+
- `mcr.microsoft.com/devcontainers/go:1-1.23` (or `1-1.23-bookworm`, `1-1.23-bullseye`)
35+
- `mcr.microsoft.com/devcontainers/go:1.2-1.23` (or `1.2-1.23-bookworm`, `1.2-1.23-bullseye`)
36+
- `mcr.microsoft.com/devcontainers/go:1.2.0-1.23` (or `1.2.0-1.23-bookworm`, `1.2.0-1.23-bullseye`)
3737

38-
However, we only do security patching on the latest [non-breaking, in support](https://github.com/devcontainers/images/issues/90) versions of images (e.g. `1-1.22`). You may want to run `apt-get update && apt-get upgrade` in your Dockerfile if you lock to a more specific version to at least pick up OS security updates.
38+
However, we only do security patching on the latest [non-breaking, in support](https://github.com/devcontainers/images/issues/90) versions of images (e.g. `1-1.23`). You may want to run `apt-get update && apt-get upgrade` in your Dockerfile if you lock to a more specific version to at least pick up OS security updates.
3939

4040
See [history](history) for information on the contents of each version and [here for a complete list of available tags](https://mcr.microsoft.com/v2/devcontainers/go/tags/list).
4141

src/go/manifest.json

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,37 @@
11
{
22
"version": "1.1.15",
33
"variants": [
4-
"1.22-bookworm",
5-
"1.21-bookworm",
6-
"1.22-bullseye",
7-
"1.21-bullseye"
4+
"1.23-bookworm",
5+
"1.22-bookworm",
6+
"1.21-bookworm",
7+
"1.23-bullseye",
8+
"1.22-bullseye",
9+
"1.21-bullseye"
810
],
911
"build": {
10-
"latest": "1.22-bookworm",
12+
"latest": "1.23-bookworm",
1113
"rootDistro": "debian",
1214
"tags": [
1315
"go:${VERSION}-${VARIANT}"
1416
],
1517
"architectures": {
16-
"1.22-bookworm": [
18+
"1.23-bookworm": [
1719
"linux/amd64",
1820
"linux/arm64"
1921
],
20-
"1.21-bookworm": [
22+
"1.22-bookworm": [
2123
"linux/amd64",
2224
"linux/arm64"
2325
],
24-
"1.22-bullseye": [
26+
"1.21-bookworm": [
27+
"linux/amd64",
28+
"linux/arm64"
29+
],
30+
"1.23-bullseye": [
31+
"linux/amd64",
32+
"linux/arm64"
33+
],
34+
"1.22-bullseye": [
2535
"linux/amd64",
2636
"linux/arm64"
2737
],
@@ -31,17 +41,20 @@
3141
]
3242
},
3343
"variantTags": {
34-
"1.22-bookworm": [
35-
"go:${VERSION}-1.22",
44+
"1.23-bookworm": [
45+
"go:${VERSION}-1.23",
3646
"go:${VERSION}-1",
3747
"go:${VERSION}-1-bookworm",
3848
"go:${VERSION}-bookworm"
3949
],
40-
"1.22-bullseye": [
50+
"1.22-bookworm": [
51+
"go:${VERSION}-1.22"
52+
],
53+
"1.23-bullseye": [
4154
"go:${VERSION}-1-bullseye",
4255
"go:${VERSION}-bullseye"
4356
],
44-
"1.21-bookworm": [
57+
"1.21-bookworm": [
4558
"go:${VERSION}-1.21"
4659
]
4760
}
@@ -79,8 +92,8 @@
7992
"cgIgnore": true
8093
}
8194
},
82-
"other": {
83-
"git": {}
84-
}
95+
"other": {
96+
"git": {}
97+
}
8598
}
86-
}
99+
}

0 commit comments

Comments
 (0)