From e40231fb60c9dc028c6f1e4a634017c1cc6afc25 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Tue, 3 Mar 2026 05:42:48 +0000 Subject: [PATCH 1/6] 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/6] 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": {}, From 77c78aa579423eb01b2f9e0f48d182c4540bd29f Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Tue, 17 Mar 2026 15:13:39 +0530 Subject: [PATCH 3/6] Update Go version in devcontainer template --- src/go-postgres/devcontainer-template.json | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/go-postgres/devcontainer-template.json b/src/go-postgres/devcontainer-template.json index 08b34afe..e32ff84e 100644 --- a/src/go-postgres/devcontainer-template.json +++ b/src/go-postgres/devcontainer-template.json @@ -1,6 +1,6 @@ { "id": "go-postgres", - "version": "560.0", + "version": "6.0.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", @@ -11,16 +11,10 @@ "type": "string", "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.26-trixie" } From 8ce18fe8f7b2a1a3264b3b25cc5d58d6b8a5ac23 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Tue, 17 Mar 2026 15:15:17 +0530 Subject: [PATCH 4/6] Update Go version proposals in devcontainer template Removed outdated Go versions from proposals. --- src/go/devcontainer-template.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/go/devcontainer-template.json b/src/go/devcontainer-template.json index 496ece65..756a7d5a 100644 --- a/src/go/devcontainer-template.json +++ b/src/go/devcontainer-template.json @@ -12,13 +12,9 @@ "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" + "1.25-bookworm" ], "default": "1.26-trixie" } From b47470e3cdde7a2ab0d85983b50bfe8cc88d65f6 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Tue, 17 Mar 2026 09:59:00 +0000 Subject: [PATCH 5/6] Fix formatting --- src/go-postgres/devcontainer-template.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go-postgres/devcontainer-template.json b/src/go-postgres/devcontainer-template.json index e32ff84e..3df128e3 100644 --- a/src/go-postgres/devcontainer-template.json +++ b/src/go-postgres/devcontainer-template.json @@ -14,7 +14,7 @@ "1.26-trixie", "1.25-trixie", "1.26-bookworm", - "1.25-bookworm", + "1.25-bookworm" ], "default": "1.26-trixie" } From e8101121c16e1a0521c8b09f6ab20a294bfa65a0 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Tue, 24 Mar 2026 10:36:26 +0000 Subject: [PATCH 6/6] debugging --- test/go-postgres/test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/go-postgres/test.sh b/test/go-postgres/test.sh index c94143ec..cfe60ba4 100644 --- a/test/go-postgres/test.sh +++ b/test/go-postgres/test.sh @@ -9,6 +9,17 @@ checkCommon # Run template specific tests checkExtension "golang.Go" +echo "=== DNS diagnostics ===" +echo "--- /etc/resolv.conf ---" +cat /etc/resolv.conf || true +echo "--- getent hosts proxy.golang.org ---" +getent hosts proxy.golang.org || true +echo "--- getent hosts github.com ---" +getent hosts github.com || true +echo "--- curl proxy.golang.org (headers) ---" +curl -I https://proxy.golang.org 2>/dev/null | head -n 5 || true +echo "=======================" + check "lib pq check" go list github.com/lib/pq check "go test program" go run hello.go