Skip to content

Commit 0502949

Browse files
[Go] Adds 1.21 ; EOL 1.19 ; EOL buster variants (#701)
* [Go] Adds 1.21 ; EOL 1.19 ; EOL buster variants * bump version in dockerfile
1 parent d394ecd commit 0502949

File tree

3 files changed

+22
-34
lines changed

3 files changed

+22
-34
lines changed

src/go/.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# [Choice] Go version (use -bookworm, or -bullseye variants on local arm64/Apple Silicon): 1, 1.20, 1.19, 1-bookworm, 1.20-bookworm, 1.19-bookworm, 1-bullseye, 1.20-bullseye, 1.19-bullseye, 1-buster, 1.20-buster, 1.19-buster
2-
ARG VARIANT=1.20-bookworm
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
33
FROM golang:${VARIANT}
44

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

src/go/README.md

Lines changed: 8 additions & 8 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.20 / 1.20-bookworm, 1.19 / 1.19-bookworm, 1-bullseye, 1.20-bullseye, 1.19-bullseye, 1-buster, 1.20-buster, 1.19-buster ([full list](https://mcr.microsoft.com/v2/devcontainers/go/tags/list)) |
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)) |
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 |
@@ -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`, `1-buster` to pin to an OS version)
27-
- `mcr.microsoft.com/devcontainers/go:1.20` (or `1.20-bookworm`, `1.20-bullseye`, `1.20-buster` to pin to an OS version)
28-
- `mcr.microsoft.com/devcontainers/go:1.19` (or `1.19-bookworm`, `1.19-bullseye`, `1.19-buster` to pin to an OS version)
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.21` (or `1.21-bookworm`, `1.21-bullseye` to pin to an OS version)
28+
- `mcr.microsoft.com/devcontainers/go:1.20` (or `1.20-bookworm`, `1.20-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.20` (or `1-1.20-bullseye`, `1-1.20-buster`)
35-
- `mcr.microsoft.com/devcontainers/go:1.0-1.20` (or `1.0-1.20-bullseye`, `1.0-1.20-buster`)
36-
- `mcr.microsoft.com/devcontainers/go:1.0.0-1.20` (or `1.0.0-1.20-bullseye`, `1.0.0-1.20-buster`)
34+
- `mcr.microsoft.com/devcontainers/go:1-1.21` (or `1-1.21-bookworm`, `1-1.21-bullseye`)
35+
- `mcr.microsoft.com/devcontainers/go:1.1-1.21` (or `1.1-1.21-bookworm`, `1.1-1.21-bullseye`)
36+
- `mcr.microsoft.com/devcontainers/go:1.1.0-1.21` (or `1.1.0-1.21-bookworm`, `1.1.0-1.21-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.20`). 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.21`). 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: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,48 @@
11
{
22
"version": "1.0.2",
33
"variants": [
4+
"1.21-bookworm",
45
"1.20-bookworm",
5-
"1.20-bullseye",
6-
"1.20-buster",
7-
"1.19-bookworm",
8-
"1.19-bullseye",
9-
"1.19-buster"
6+
"1.21-bullseye",
7+
"1.20-bullseye"
108
],
119
"build": {
12-
"latest": "1.20-bookworm",
10+
"latest": "1.21-bookworm",
1311
"rootDistro": "debian",
1412
"tags": [
1513
"go:${VERSION}-${VARIANT}"
1614
],
1715
"architectures": {
18-
"1.20-bookworm": [
16+
"1.21-bookworm": [
1917
"linux/amd64",
2018
"linux/arm64"
2119
],
22-
"1.19-bookworm": [
20+
"1.20-bookworm": [
2321
"linux/amd64",
2422
"linux/arm64"
2523
],
26-
"1.20-bullseye": [
24+
"1.21-bullseye": [
2725
"linux/amd64",
2826
"linux/arm64"
2927
],
30-
"1.19-bullseye": [
28+
"1.20-bullseye": [
3129
"linux/amd64",
3230
"linux/arm64"
33-
],
34-
"1.20-buster": [
35-
"linux/amd64"
36-
],
37-
"1.19-buster": [
38-
"linux/amd64"
3931
]
4032
},
4133
"variantTags": {
42-
"1.20-bookworm": [
34+
"1.21-bookworm": [
4335
"go:${VERSION}-1.20",
4436
"go:${VERSION}-1",
4537
"go:${VERSION}-1-bookworm",
4638
"go:${VERSION}-bookworm"
4739
],
48-
"1.20-bullseye": [
40+
"1.21-bullseye": [
4941
"go:${VERSION}-1-bullseye",
5042
"go:${VERSION}-bullseye"
5143
],
52-
"1.20-buster": [
53-
"go:${VERSION}-1-buster",
54-
"go:${VERSION}-buster"
55-
],
56-
"1.19-bookworm": [
57-
"go:${VERSION}-1.19"
44+
"1.20-bookworm": [
45+
"go:${VERSION}-1.20"
5846
]
5947
}
6048
},

0 commit comments

Comments
 (0)