Skip to content

Commit 4828efe

Browse files
authored
chore: support go 1.24 (#1304)
1 parent 36200bb commit 4828efe

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-7
lines changed

src/go/.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VARIANT=1.23-bookworm
1+
ARG VARIANT=1.24-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

+6-5
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.23 / 1.23-bookworm, 1.22 / 1.22-bookworm, 1-bullseye, 1.22-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/go/tags/list)) |
13+
| *Available image variants* | 1 / 1-bookworm, 1.24 / 1.24-bookworm, 1.23 / 1.23-bookworm, 1.22 / 1.22-bookworm, 1-bullseye, 1.22-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,19 @@ 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.24` (or `1.24-bookworm`, `1.24-bullseye` to pin to an OS version)
2728
- `mcr.microsoft.com/devcontainers/go:1.23` (or `1.23-bookworm`, `1.23-bullseye` to pin to an OS version)
2829
- `mcr.microsoft.com/devcontainers/go:1.22` (or `1.22-bookworm`, `1.22-bullseye` to pin to an OS version)
2930

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

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

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`)
35+
- `mcr.microsoft.com/devcontainers/go:1-1.24` (or `1-1.24-bookworm`, `1-1.24-bullseye`)
36+
- `mcr.microsoft.com/devcontainers/go:1.4-1.24` (or `1.4-1.24-bookworm`, `1.4-1.24-bullseye`)
37+
- `mcr.microsoft.com/devcontainers/go:1.4.0-1.24` (or `1.4.0-1.24-bookworm`, `1.4.0-1.24-bullseye`)
3738

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.
39+
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.24`). 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.
3940

4041
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).
4142

src/go/manifest.json

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
22
"version": "1.3.3",
33
"variants": [
4+
"1.24-bookworm",
45
"1.23-bookworm",
56
"1.22-bookworm",
7+
"1.24-bullseye",
68
"1.23-bullseye",
79
"1.22-bullseye"
810
],
911
"build": {
10-
"latest": "1.23-bookworm",
12+
"latest": "1.24-bookworm",
1113
"rootDistro": "debian",
1214
"tags": [
1315
"go:${VERSION}-${VARIANT}"
1416
],
1517
"architectures": {
18+
"1.24-bookworm": [
19+
"linux/amd64",
20+
"linux/arm64"
21+
],
1622
"1.23-bookworm": [
1723
"linux/amd64",
1824
"linux/arm64"
@@ -21,6 +27,10 @@
2127
"linux/amd64",
2228
"linux/arm64"
2329
],
30+
"1.24-bullseye": [
31+
"linux/amd64",
32+
"linux/arm64"
33+
],
2434
"1.23-bullseye": [
2535
"linux/amd64",
2636
"linux/arm64"
@@ -31,6 +41,12 @@
3141
]
3242
},
3343
"variantTags": {
44+
"1.24-bookworm": [
45+
"go:${VERSION}-1.24",
46+
"go:${VERSION}-1",
47+
"go:${VERSION}-1-bookworm",
48+
"go:${VERSION}-bookworm"
49+
],
3450
"1.23-bookworm": [
3551
"go:${VERSION}-1.23",
3652
"go:${VERSION}-1",
@@ -40,6 +56,10 @@
4056
"1.22-bookworm": [
4157
"go:${VERSION}-1.22"
4258
],
59+
"1.24-bullseye": [
60+
"go:${VERSION}-1-bullseye",
61+
"go:${VERSION}-bullseye"
62+
],
4363
"1.23-bullseye": [
4464
"go:${VERSION}-1-bullseye",
4565
"go:${VERSION}-bullseye"

0 commit comments

Comments
 (0)