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..3df128e3 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": "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,12 @@ "type": "string", "description": "Go version:", "proposals": [ - "1-trixie", + "1.26-trixie", "1.25-trixie", - "1.24-trixie", - "1-bookworm", - "1.25-bookworm", - "1.24-bookworm", - "1-bullseye", - "1.24-bullseye" + "1.26-bookworm", + "1.25-bookworm" ], - "default": "1.25-trixie" + "default": "1.26-trixie" } }, "platforms": ["Go"], 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..756a7d5a 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,12 @@ "type": "string", "description": "Go version:", "proposals": [ - "1-trixie", - "1.24-trixie", + "1.26-trixie", "1.25-trixie", - "1.25-bookworm", - "1.24-bookworm", - "1.24-bullseye" + "1.26-bookworm", + "1.25-bookworm" ], - "default": "1.25-trixie" + "default": "1.26-trixie" } }, "platforms": ["Go"], 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