Skip to content

Commit e40231f

Browse files
Update Go version to 1.26 in Dockerfiles and documentation
1 parent 7517ac5 commit e40231f

6 files changed

Lines changed: 12 additions & 8 deletions

File tree

src/go-postgres/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/devcontainers/go:2-${templateOption:imageVariant}
1+
FROM mcr.microsoft.com/devcontainers/go:3-${templateOption:imageVariant}
22

33
# [Optional] Uncomment this section to install additional OS packages.
44
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \

src/go-postgres/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Use and develop Go + Postgres applications. Includes appropriate runtime args, G
77

88
| Options Id | Description | Type | Default Value |
99
|-----|-----|-----|-----|
10-
| imageVariant | Go version: | string | 1.25-trixie |
10+
| imageVariant | Go version: | string | 1.26-trixie |
1111

1212
This template references an image that was [pre-built](https://containers.dev/implementors/reference/#prebuilding) to automatically include needed devcontainer.json metadata.
1313

src/go-postgres/devcontainer-template.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "go-postgres",
3-
"version": "5.0.0",
3+
"version": "560.0",
44
"name": "Go & PostgreSQL",
55
"description": "Use and develop Go + Postgres applications. Includes appropriate runtime args, Go, common tools, extensions, and dependencies.",
66
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/go-postgres",
@@ -12,15 +12,17 @@
1212
"description": "Go version:",
1313
"proposals": [
1414
"1-trixie",
15+
"1.26-trixie",
1516
"1.25-trixie",
1617
"1.24-trixie",
1718
"1-bookworm",
19+
"1.26-bookworm",
1820
"1.25-bookworm",
1921
"1.24-bookworm",
2022
"1-bullseye",
2123
"1.24-bullseye"
2224
],
23-
"default": "1.25-trixie"
25+
"default": "1.26-trixie"
2426
}
2527
},
2628
"platforms": ["Go"],

src/go/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Go",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/go:2-${templateOption:imageVariant}"
6+
"image": "mcr.microsoft.com/devcontainers/go:3-${templateOption:imageVariant}"
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
99
// "features": {},

src/go/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Develop Go based applications. Includes appropriate runtime args, Go, common too
77

88
| Options Id | Description | Type | Default Value |
99
|-----|-----|-----|-----|
10-
| imageVariant | Go version: | string | 1.25-trixie |
10+
| imageVariant | Go version: | string | 1.26-trixie |
1111

1212
This template references an image that was [pre-built](https://containers.dev/implementors/reference/#prebuilding) to automatically include needed devcontainer.json metadata.
1313

src/go/devcontainer-template.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "go",
3-
"version": "5.0.0",
3+
"version": "6.0.0",
44
"name": "Go",
55
"description": "Develop Go based applications. Includes appropriate runtime args, Go, common tools, extensions, and dependencies.",
66
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/go",
@@ -11,14 +11,16 @@
1111
"type": "string",
1212
"description": "Go version:",
1313
"proposals": [
14+
"1.26-trixie",
1415
"1-trixie",
1516
"1.24-trixie",
1617
"1.25-trixie",
18+
"1.26-bookworm",
1719
"1.25-bookworm",
1820
"1.24-bookworm",
1921
"1.24-bullseye"
2022
],
21-
"default": "1.25-trixie"
23+
"default": "1.26-trixie"
2224
}
2325
},
2426
"platforms": ["Go"],

0 commit comments

Comments
 (0)