Skip to content

feat: update to Go 1.26#11189

Merged
lidel merged 3 commits intomasterfrom
feat/go-1.26
Feb 10, 2026
Merged

feat: update to Go 1.26#11189
lidel merged 3 commits intomasterfrom
feat/go-1.26

Conversation

@lidel
Copy link
Member

@lidel lidel commented Feb 10, 2026

replace deprecated httputil.NewSingleHostReverseProxy with ReverseProxy.Rewrite, switch math/rand to math/rand/v2 in production code, update Dockerfile base image.

cc @gammazero -- i think its worth giving this a try in RC1

@lidel lidel requested a review from a team as a code owner February 10, 2026 21:55
@lidel lidel force-pushed the feat/go-1.26 branch 2 times, most recently from 2746a70 to eac52f2 Compare February 10, 2026 22:15
replace deprecated httputil.NewSingleHostReverseProxy (Director)
with ReverseProxy.Rewrite, switch math/rand to math/rand/v2 in
production code, update Dockerfile base image.
@gammazero
Copy link
Contributor

gammazero commented Feb 10, 2026

Worth putting it into RC1, because many users are going to want to use go1.26.

@lidel lidel merged commit 36c29c5 into master Feb 10, 2026
21 checks passed
@lidel lidel deleted the feat/go-1.26 branch February 10, 2026 23:08
aschmahmann added a commit that referenced this pull request Feb 27, 2026
lidel added a commit that referenced this pull request Feb 27, 2026
* Revert "feat: update to Go 1.26 (#11189)"

This reverts commit 36c29c5.

* chore: go mod tidy

* fix: keep go 1.25-compatible modernizations, add v0.40.1 changelog

- config/autoconf.go: restore math/rand/v2 (available since go 1.22)
- core/corehttp/p2p_proxy.go: restore httputil.ReverseProxy.Rewrite (available since go 1.21)
- core/commands/name/name.go: restore %d format for ValidityType int64
- docs/changelogs/v0.40.md: keep shipped v0.40.0 notes intact, add v0.40.1 section

---------

Co-authored-by: Marcin Rataj <lidel@lidel.org>
lidel added a commit that referenced this pull request Feb 27, 2026
* Revert "feat: update to Go 1.26 (#11189)"

This reverts commit 36c29c5.

* chore: go mod tidy

* fix: keep go 1.25-compatible modernizations, add v0.40.1 changelog

- config/autoconf.go: restore math/rand/v2 (available since go 1.22)
- core/corehttp/p2p_proxy.go: restore httputil.ReverseProxy.Rewrite (available since go 1.21)
- core/commands/name/name.go: restore %d format for ValidityType int64
- docs/changelogs/v0.40.md: keep shipped v0.40.0 notes intact, add v0.40.1 section

---------

Co-authored-by: Marcin Rataj <lidel@lidel.org>
(cherry picked from commit 550d3b6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants