Skip to content

Commit a035cf4

Browse files
authored
chore: support go 1.25 (#1502)
Co-authored-by: criyle <git@goj.ac>
1 parent a313f23 commit a035cf4

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
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.24-bookworm
1+
ARG VARIANT=1.25-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: 5 additions & 5 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.24 / 1.24-bookworm, 1.23 / 1.23-bookworm, 1-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/go/tags/list)) |
13+
| *Available image variants* | 1 / 1-bookworm, 1.25 / 1.25-bookworm, 1.24 / 1.24-bookworm, 1-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,16 +24,16 @@ 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.25` (or `1.25-bookworm`, `1.25-bullseye` to pin to an OS version)
2728
- `mcr.microsoft.com/devcontainers/go:1.24` (or `1.24-bookworm`, `1.24-bullseye` to pin to an OS version)
28-
- `mcr.microsoft.com/devcontainers/go:1.23` (or `1.23-bookworm`, `1.23-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.24` (or `1-1.24-bookworm`, `1-1.24-bullseye`)
35-
- `mcr.microsoft.com/devcontainers/go:1.4-1.24` (or `1.4-1.24-bookworm`, `1.4-1.24-bullseye`)
36-
- `mcr.microsoft.com/devcontainers/go:1.4.0-1.24` (or `1.4.0-1.24-bookworm`, `1.4.0-1.24-bullseye`)
34+
- `mcr.microsoft.com/devcontainers/go:1-1.25` (or `1-1.25-bookworm`, `1-1.25-bullseye`)
35+
- `mcr.microsoft.com/devcontainers/go:1.4-1.25` (or `1.4-1.25-bookworm`, `1.4-1.25-bullseye`)
36+
- `mcr.microsoft.com/devcontainers/go:1.4.0-1.25` (or `1.4.0-1.25-bookworm`, `1.4.0-1.25-bullseye`)
3737

3838
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.
3939

src/go/manifest.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
{
22
"version": "1.4.5",
33
"variants": [
4+
"1.25-bookworm",
45
"1.24-bookworm",
5-
"1.23-bookworm",
6-
"1.24-bullseye",
7-
"1.23-bullseye"
6+
"1.25-bullseye",
7+
"1.24-bullseye"
88
],
99
"build": {
10-
"latest": "1.24-bookworm",
10+
"latest": "1.25-bookworm",
1111
"rootDistro": "debian",
1212
"tags": [
1313
"go:${VERSION}-${VARIANT}"
1414
],
1515
"architectures": {
16-
"1.24-bookworm": [
16+
"1.25-bookworm": [
1717
"linux/amd64",
1818
"linux/arm64"
1919
],
20-
"1.23-bookworm": [
20+
"1.24-bookworm": [
2121
"linux/amd64",
2222
"linux/arm64"
2323
],
24-
"1.24-bullseye": [
24+
"1.25-bullseye": [
2525
"linux/amd64",
2626
"linux/arm64"
2727
],
28-
"1.23-bullseye": [
28+
"1.24-bullseye": [
2929
"linux/amd64",
3030
"linux/arm64"
3131
]
3232
},
3333
"variantTags": {
34-
"1.24-bookworm": [
35-
"go:${VERSION}-1.24",
34+
"1.25-bookworm": [
35+
"go:${VERSION}-1.25",
3636
"go:${VERSION}-1",
3737
"go:${VERSION}-1-bookworm",
3838
"go:${VERSION}-bookworm"
3939
],
40-
"1.23-bookworm": [
41-
"go:${VERSION}-1.23",
40+
"1.24-bookworm": [
41+
"go:${VERSION}-1.24",
4242
"go:${VERSION}-1",
4343
"go:${VERSION}-1-bookworm",
4444
"go:${VERSION}-bookworm"
4545
],
46-
"1.24-bullseye": [
46+
"1.25-bullseye": [
4747
"go:${VERSION}-1-bullseye",
4848
"go:${VERSION}-bullseye"
4949
],
50-
"1.23-bullseye": [
50+
"1.24-bullseye": [
5151
"go:${VERSION}-1-bullseye",
5252
"go:${VERSION}-bullseye"
5353
]
@@ -90,4 +90,4 @@
9090
"git": {}
9191
}
9292
}
93-
}
93+
}

0 commit comments

Comments
 (0)