Adds support for Go 1.26 (Feb 2026) to the go and go-postgres templates.#408
Open
sireeshajonnalagadda wants to merge 12 commits intodevcontainers:mainfrom
Open
Adds support for Go 1.26 (Feb 2026) to the go and go-postgres templates.#408sireeshajonnalagadda wants to merge 12 commits intodevcontainers:mainfrom
sireeshajonnalagadda wants to merge 12 commits intodevcontainers:mainfrom
Conversation
Removed outdated Go versions from proposals.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal:
Upgrade templates to Go 1.26.
Challenges during implementation:
- CI containers couldn't resolve external hostnames like proxy.golang.org and github.com
- Go module downloads failing due to DNS lookup errors:
dial tcp: lookup proxy.golang.org on 127.0.0.53:53: read udp: connection refused
fatal: unable to access 'https://github.com/lib/pq/': Could not resolve host: github.com
- Both proxy AND direct access failing - indicating complete DNS breakdown in CI environment
Final Solution:
Go 1.25 → 1.26 in templates and configurations
Template version bump (5.0.0 → 6.0.0)
Test environment alignment (go 1.17 → go 1.26)
Cleaned up old version options (removed 1.24, outdated distros)
Added Go environment checks (GOPROXY, GOSUMDB, version)
Better debugging output to identify DNS/module issues
Code formatting improvements in "docker-compose.yml" and "devcontainer.json"
Consistent indentation and whitespace
PostgreSQL volume path fix (/var/lib/postgresql/data → /var/lib/postgresql)
Outcome:
Templates now support Go 1.26 with improved diagnostics and CI stability.