Skip to content

Commit fc1bac7

Browse files
go: support go 1.25 on Debian trixie (#1511)
* chore: go 1.25 trixie * chore: add go 1.24-trixie and bump major version to 2.0.0 --------- Co-authored-by: criyle <git@goj.ac> Co-authored-by: Álvaro Rausell Guiard <33221237+AlvaroRausell@users.noreply.github.com>
1 parent 7c16165 commit fc1bac7

File tree

3 files changed

+29
-20
lines changed

3 files changed

+29
-20
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.25-bookworm
1+
ARG VARIANT=1.25-trixie
22
FROM golang:${VARIANT}
33

44
# Fixing vulnerability issue by upgrading svn to 1.14.5. Ref https://subversion.apache.org/security/CVE-2024-46901-advisory.txt

src/go/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
| *Categories* | Core, Languages |
1111
| *Definition type* | Dockerfile |
1212
| *Published images* | mcr.microsoft.com/devcontainers/go |
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)) |
14-
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, and `bullseye` variants |
13+
| *Available image variants* | 1 / 1-bookworm, 1.25 / 1.25-trixie, 1.24 / 1.24-bookworm, 1-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/go/tags/list)) |
14+
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `trixie`, `bookworm`, and `bullseye` variants |
1515
| *Container host OS support* | Linux, macOS, Windows |
1616
| *Container OS* | Debian |
1717
| *Languages, platforms* | Go |
@@ -23,19 +23,19 @@ See **[history](history)** for information on the contents of published images.
2323
You can directly reference pre-built versions of `Dockerfile` by using the `image` property in `.devcontainer/devcontainer.json` or updating the `FROM` statement in your own `Dockerfile` to one of the following. An example `Dockerfile` is included in this repository.
2424

2525
- `mcr.microsoft.com/devcontainers/go` (latest)
26-
- `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)
26+
- `mcr.microsoft.com/devcontainers/go:1` (or `1-trixie`, `1-bookworm`, `1-bullseye` to pin to an OS version)
27+
- `mcr.microsoft.com/devcontainers/go:1.25` (or `1.25-trixie`, `1.25-bookworm` to pin to an OS version)
2828
- `mcr.microsoft.com/devcontainers/go:1.24` (or `1.24-bookworm`, `1.24-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.25` (or `1-1.25-bookworm`, `1-1.25-bullseye`)
34+
- `mcr.microsoft.com/devcontainers/go:1-1.25` (or `1-1.25-trixie`, `1-1.25-bookworm`)
3535
- `mcr.microsoft.com/devcontainers/go:1.4-1.25` (or `1.4-1.25-bookworm`, `1.4-1.25-bullseye`)
3636
- `mcr.microsoft.com/devcontainers/go:1.4.0-1.25` (or `1.4.0-1.25-bookworm`, `1.4.0-1.25-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.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.
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.25`). 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: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
{
2-
"version": "1.4.6",
2+
"version": "2.0.0",
33
"variants": [
4+
"1.25-trixie",
5+
"1.24-trixie",
46
"1.25-bookworm",
57
"1.24-bookworm",
6-
"1.25-bullseye",
78
"1.24-bullseye"
89
],
910
"build": {
10-
"latest": "1.25-bookworm",
11+
"latest": "1.25-trixie",
1112
"rootDistro": "debian",
1213
"tags": [
1314
"go:${VERSION}-${VARIANT}"
1415
],
1516
"architectures": {
16-
"1.25-bookworm": [
17+
"1.25-trixie": [
1718
"linux/amd64",
1819
"linux/arm64"
1920
],
20-
"1.24-bookworm": [
21+
"1.24-trixie": [
2122
"linux/amd64",
2223
"linux/arm64"
2324
],
24-
"1.25-bullseye": [
25+
"1.25-bookworm": [
26+
"linux/amd64",
27+
"linux/arm64"
28+
],
29+
"1.24-bookworm": [
2530
"linux/amd64",
2631
"linux/arm64"
2732
],
@@ -31,21 +36,25 @@
3136
]
3237
},
3338
"variantTags": {
34-
"1.25-bookworm": [
39+
"1.25-trixie": [
3540
"go:${VERSION}-1.25",
3641
"go:${VERSION}-1",
37-
"go:${VERSION}-1-bookworm",
38-
"go:${VERSION}-bookworm"
42+
"go:${VERSION}-1-trixie",
43+
"go:${VERSION}-trixie"
3944
],
40-
"1.24-bookworm": [
45+
"1.24-trixie": [
4146
"go:${VERSION}-1.24",
4247
"go:${VERSION}-1",
48+
"go:${VERSION}-1-trixie",
49+
"go:${VERSION}-trixie"
50+
],
51+
"1.25-bookworm": [
4352
"go:${VERSION}-1-bookworm",
4453
"go:${VERSION}-bookworm"
4554
],
46-
"1.25-bullseye": [
47-
"go:${VERSION}-1-bullseye",
48-
"go:${VERSION}-bullseye"
55+
"1.24-bookworm": [
56+
"go:${VERSION}-1-bookworm",
57+
"go:${VERSION}-bookworm"
4958
],
5059
"1.24-bullseye": [
5160
"go:${VERSION}-1-bullseye",

0 commit comments

Comments
 (0)