Skip to content

Commit e32e2cc

Browse files
Go: Release 1.20.0 (#412)
1 parent b4cab4c commit e32e2cc

File tree

3 files changed

+25
-12
lines changed

3 files changed

+25
-12
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 -bullseye variants on local arm64/Apple Silicon): 1, 1.19, 1.18, 1-bullseye, 1.19-bullseye, 1.18-bullseye, 1-buster, 1.19-buster, 1.18-buster
2-
ARG VARIANT=1-bullseye
1+
# [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): 1, 1.20, 1.19, 1.18, 1-bullseye, 1.20-bullseye, 1.19-bullseye, 1.18-bullseye, 1-buster, 1.20-buster, 1.19-buster, 1.18-buster
2+
ARG VARIANT=1.20-bullseye
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: 7 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-bullseye, 1.18 / 1.18-bullseye, 1.19 / 1.19-bullseye, 1-buster, 1.18-buster, 1.19-buster ([full list](https://mcr.microsoft.com/v2/devcontainers/go/tags/list)) |
13+
| *Available image variants* | 1 / 1-bullseye, 1.20 / 1.20-bullseye, 1.19 / 1.19-bullseye, 1.18 / 1.18-bullseye, 1-buster, 1.20-buster, 1.19-buster, 1.18-buster ([full list](https://mcr.microsoft.com/v2/devcontainers/go/tags/list)) |
1414
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `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-bullseye`, `1-buster` to pin to an OS version)
27-
- `mcr.microsoft.com/devcontainers/go:1.18` (or `1.18-bullseye`, `1.18-buster` to pin to an OS version)
27+
- `mcr.microsoft.com/devcontainers/go:1.20` (or `1.20-bullseye`, `1.20-buster` to pin to an OS version)
2828
- `mcr.microsoft.com/devcontainers/go:1.19` (or `1.19-bullseye`, `1.19-buster` to pin to an OS version)
29+
- `mcr.microsoft.com/devcontainers/go:1.18` (or `1.18-bullseye`, `1.18-buster` 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:0-1.19` (or `0-1.19-bullseye`, `0-1.19-buster`)
35-
- `mcr.microsoft.com/devcontainers/go:0.207-1.19` (or `0.207-1.19-bullseye`, `0.207-1.19-buster`)
36-
- `mcr.microsoft.com/devcontainers/go:0.207.1-1.19` (or `0.207.1-1.19-bullseye`, `0.207.1-1.19-buster`)
35+
- `mcr.microsoft.com/devcontainers/go:0-1.20` (or `0-1.20-bullseye`, `0-1.20-buster`)
36+
- `mcr.microsoft.com/devcontainers/go:0.207-1.20` (or `0.207-1.20-bullseye`, `0.207-1.20-buster`)
37+
- `mcr.microsoft.com/devcontainers/go:0.207.15-1.20` (or `0.207.1-1.20-bullseye`, `0.207.1-1.20-buster`)
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. `0-1.16`). 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. `0-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.
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

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
22
"version": "0.207.14",
33
"variants": [
4+
"1.20-bullseye",
5+
"1.20-buster",
46
"1.19-bullseye",
57
"1.19-buster",
68
"1.18-bullseye",
79
"1.18-buster"
810
],
911
"build": {
10-
"latest": "1.19-bullseye",
12+
"latest": "1.20-bullseye",
1113
"rootDistro": "debian",
1214
"tags": [
1315
"go:${VERSION}-${VARIANT}"
1416
],
1517
"architectures": {
18+
"1.20-bullseye": [
19+
"linux/amd64",
20+
"linux/arm64"
21+
],
1622
"1.19-bullseye": [
1723
"linux/amd64",
1824
"linux/arm64"
@@ -21,6 +27,9 @@
2127
"linux/amd64",
2228
"linux/arm64"
2329
],
30+
"1.20-buster": [
31+
"linux/amd64"
32+
],
2433
"1.19-buster": [
2534
"linux/amd64"
2635
],
@@ -29,16 +38,19 @@
2938
]
3039
},
3140
"variantTags": {
32-
"1.19-bullseye": [
33-
"go:${VERSION}-1.19",
41+
"1.20-bullseye": [
42+
"go:${VERSION}-1.20",
3443
"go:${VERSION}-1",
3544
"go:${VERSION}-1-bullseye",
3645
"go:${VERSION}-bullseye"
3746
],
38-
"1.19-buster": [
47+
"1.20-buster": [
3948
"go:${VERSION}-1-buster",
4049
"go:${VERSION}-buster"
4150
],
51+
"1.19-bullseye": [
52+
"go:${VERSION}-1.19"
53+
],
4254
"1.18-bullseye": [
4355
"go:${VERSION}-1.18"
4456
]

0 commit comments

Comments
 (0)