Skip to content

Lowered go.mod to 1.25.0#242

Merged
bitfield merged 2 commits into
bitfield:masterfrom
mhutchinson:lowerGoMod
Jun 10, 2026
Merged

Lowered go.mod to 1.25.0#242
bitfield merged 2 commits into
bitfield:masterfrom
mhutchinson:lowerGoMod

Conversation

@mhutchinson

Copy link
Copy Markdown
Contributor

This restores support for consumers still using Go 1.25. The previous bump to go 1.26.4 forced all consumers of this library to use Go 1.26 or newer.
The codebase does not use any Go 1.26-specific features, making the 1.26 language requirement unnecessary.

go1.25.11 contains the same critical security patches as go1.26.4 (fixing vulnerabilities in crypto/x509, net/textproto, and mime).
Go's toolchain auto-switching (introduced in Go 1.21) will automatically download and use go1.25.11 for developers working on this module if their local toolchain is older, ensuring they build with the secure version without forcing a major Go upgrade.

This restores support for consumers still using Go 1.25. The previous bump to `go 1.26.4` forced all consumers of this library to use Go 1.26 or newer.
The codebase does not use any Go 1.26-specific features, making the `1.26` language requirement unnecessary.

`go1.25.11` contains the same critical security patches as `go1.26.4` (fixing vulnerabilities in `crypto/x509`, `net/textproto`, and `mime`).
Go's toolchain auto-switching (introduced in Go 1.21) will automatically download and use `go1.25.11` for developers working on this module if their local toolchain is older, ensuring they build with the secure version without forcing a major Go upgrade.
This makes govulncheck work even for users with go1.26.{0-3}
@mhutchinson

Copy link
Copy Markdown
Contributor Author

I also ran go mod tidy, which explains the cleanup in go.sum

@bitfield bitfield merged commit cf62146 into bitfield:master Jun 10, 2026
8 checks passed
@bitfield

Copy link
Copy Markdown
Owner

Nice one @mhutchinson, thanks! I'll use toolchain for future security updates now that I know the difference it makes.

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