Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/go-postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
14 changes: 5 additions & 9 deletions src/go-postgres/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion src/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
12 changes: 5 additions & 7 deletions src/go/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"],
Expand Down
11 changes: 11 additions & 0 deletions test/go-postgres/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading