Skip to content

fix(windows): revert update to Go 1.26#11215

Merged
lidel merged 3 commits intomasterfrom
fix/revert-go-126
Feb 27, 2026
Merged

fix(windows): revert update to Go 1.26#11215
lidel merged 3 commits intomasterfrom
fix/revert-go-126

Conversation

@aschmahmann
Copy link
Contributor

This reverts commit 36c29c5.

Allows us to downgrade Go in order to handle what seem to be Go 1.26.0 issues on Windows associated with #11214

@aschmahmann aschmahmann requested review from a team and lidel as code owners February 27, 2026 07:33
@lidel lidel changed the title Revert "feat: update to Go 1.26 (#11189)" fix(windows): revert update to Go 1.26 Feb 27, 2026
Comment on lines +339 to +343
#### 🐹 Go 1.26

This release is built with [Go 1.26](https://go.dev/doc/go1.26).

You should see lower memory usage and reduced GC pauses thanks to the new Green Tea garbage collector (10-40% less GC overhead). Reading block data and API responses is faster due to `io.ReadAll` improvements (~2x faster, ~50% less memory). On 64-bit platforms, heap base address randomization adds a layer of security hardening.
Copy link
Contributor Author

@aschmahmann aschmahmann Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove this and the ToC entry for it since we're switching back to 1.25 until bugs are fixed (or add an addendum about Windows specific downgrading) , right?

Copy link
Member

@lidel lidel Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added note in 5372ecb

@lidel lidel force-pushed the fix/revert-go-126 branch from c3b83ed to 0104e32 Compare February 27, 2026 15:13
- 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
@lidel lidel force-pushed the fix/revert-go-126 branch from 0104e32 to 5372ecb Compare February 27, 2026 15:15
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Windows 10, the problem #11214 is gone.
I'm going to merge and cherry-pick into v0.40.1 release, then do IPFS Desktop

@lidel lidel merged commit 550d3b6 into master Feb 27, 2026
21 checks passed
@lidel lidel deleted the fix/revert-go-126 branch February 27, 2026 16:04
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