From e40231fb60c9dc028c6f1e4a634017c1cc6afc25 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Tue, 3 Mar 2026 05:42:48 +0000 Subject: [PATCH 1/2] Update Go version to 1.26 in Dockerfiles and documentation --- src/go-postgres/.devcontainer/Dockerfile | 2 +- src/go-postgres/README.md | 2 +- src/go-postgres/devcontainer-template.json | 6 ++++-- src/go/.devcontainer/devcontainer.json | 2 +- src/go/README.md | 2 +- src/go/devcontainer-template.json | 6 ++++-- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/go-postgres/.devcontainer/Dockerfile b/src/go-postgres/.devcontainer/Dockerfile index 3c801df2..0cd7a3ea 100644 --- a/src/go-postgres/.devcontainer/Dockerfile +++ b/src/go-postgres/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/devcontainers/go:2-${templateOption:imageVariant} +FROM mcr.microsoft.com/devcontainers/go:3-${templateOption:imageVariant} # [Optional] Uncomment this section to install additional OS packages. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ diff --git a/src/go-postgres/README.md b/src/go-postgres/README.md index f1aac8ba..ac9bb3da 100644 --- a/src/go-postgres/README.md +++ b/src/go-postgres/README.md @@ -7,7 +7,7 @@ Use and develop Go + Postgres applications. Includes appropriate runtime args, G | Options Id | Description | Type | Default Value | |-----|-----|-----|-----| -| imageVariant | Go version: | string | 1.25-trixie | +| imageVariant | Go version: | string | 1.26-trixie | This template references an image that was [pre-built](https://containers.dev/implementors/reference/#prebuilding) to automatically include needed devcontainer.json metadata. diff --git a/src/go-postgres/devcontainer-template.json b/src/go-postgres/devcontainer-template.json index 759d6d36..08b34afe 100644 --- a/src/go-postgres/devcontainer-template.json +++ b/src/go-postgres/devcontainer-template.json @@ -1,6 +1,6 @@ { "id": "go-postgres", - "version": "5.0.0", + "version": "560.0", "name": "Go & PostgreSQL", "description": "Use and develop Go + Postgres applications. Includes appropriate runtime args, Go, common tools, extensions, and dependencies.", "documentationURL": "https://github.com/devcontainers/templates/tree/main/src/go-postgres", @@ -12,15 +12,17 @@ "description": "Go version:", "proposals": [ "1-trixie", + "1.26-trixie", "1.25-trixie", "1.24-trixie", "1-bookworm", + "1.26-bookworm", "1.25-bookworm", "1.24-bookworm", "1-bullseye", "1.24-bullseye" ], - "default": "1.25-trixie" + "default": "1.26-trixie" } }, "platforms": ["Go"], diff --git a/src/go/.devcontainer/devcontainer.json b/src/go/.devcontainer/devcontainer.json index e3099526..1e638b02 100644 --- a/src/go/.devcontainer/devcontainer.json +++ b/src/go/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "Go", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/go:2-${templateOption:imageVariant}" + "image": "mcr.microsoft.com/devcontainers/go:3-${templateOption:imageVariant}" // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, diff --git a/src/go/README.md b/src/go/README.md index 35c83739..77a96d2a 100644 --- a/src/go/README.md +++ b/src/go/README.md @@ -7,7 +7,7 @@ Develop Go based applications. Includes appropriate runtime args, Go, common too | Options Id | Description | Type | Default Value | |-----|-----|-----|-----| -| imageVariant | Go version: | string | 1.25-trixie | +| imageVariant | Go version: | string | 1.26-trixie | This template references an image that was [pre-built](https://containers.dev/implementors/reference/#prebuilding) to automatically include needed devcontainer.json metadata. diff --git a/src/go/devcontainer-template.json b/src/go/devcontainer-template.json index 79c4a1ae..496ece65 100644 --- a/src/go/devcontainer-template.json +++ b/src/go/devcontainer-template.json @@ -1,6 +1,6 @@ { "id": "go", - "version": "5.0.0", + "version": "6.0.0", "name": "Go", "description": "Develop Go based applications. Includes appropriate runtime args, Go, common tools, extensions, and dependencies.", "documentationURL": "https://github.com/devcontainers/templates/tree/main/src/go", @@ -11,14 +11,16 @@ "type": "string", "description": "Go version:", "proposals": [ + "1.26-trixie", "1-trixie", "1.24-trixie", "1.25-trixie", + "1.26-bookworm", "1.25-bookworm", "1.24-bookworm", "1.24-bullseye" ], - "default": "1.25-trixie" + "default": "1.26-trixie" } }, "platforms": ["Go"], From f57ea457581f2278bd72c507fec321fdccc76337 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Tue, 3 Mar 2026 05:59:14 +0000 Subject: [PATCH 2/2] change in devcontainer configuration --- src/go-postgres/.devcontainer/Dockerfile | 2 +- src/go/.devcontainer/devcontainer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/go-postgres/.devcontainer/Dockerfile b/src/go-postgres/.devcontainer/Dockerfile index 0cd7a3ea..3c801df2 100644 --- a/src/go-postgres/.devcontainer/Dockerfile +++ b/src/go-postgres/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/devcontainers/go:3-${templateOption:imageVariant} +FROM mcr.microsoft.com/devcontainers/go:2-${templateOption:imageVariant} # [Optional] Uncomment this section to install additional OS packages. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ diff --git a/src/go/.devcontainer/devcontainer.json b/src/go/.devcontainer/devcontainer.json index 1e638b02..e3099526 100644 --- a/src/go/.devcontainer/devcontainer.json +++ b/src/go/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "Go", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/go:3-${templateOption:imageVariant}" + "image": "mcr.microsoft.com/devcontainers/go:2-${templateOption:imageVariant}" // Features to add to the dev container. More info: https://containers.dev/features. // "features": {},