Skip to content

Update minimum Go version to 1.25#244

Merged
oschwald merged 1 commit into
mainfrom
wstorey/update-go-version
May 26, 2026
Merged

Update minimum Go version to 1.25#244
oschwald merged 1 commit into
mainfrom
wstorey/update-go-version

Conversation

@horgh
Copy link
Copy Markdown
Contributor

@horgh horgh commented May 26, 2026

Bump the go directive in go.mod, switch the CI matrix to test 1.25.x and 1.26.x, and update the golangci-lint go target to match.

Bump the go directive in go.mod, switch the CI matrix to test 1.25.x
and 1.26.x, and update the golangci-lint go target to match.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Go version from 1.24 to 1.25 in both the golangci-lint configuration and the go.mod file. The reviewer suggests changing the go.mod version directive from 1.25.0 to 1.25 to align with standard Go versioning practices and prevent automatic normalization diffs during future go mod tidy runs.

Comment thread go.mod
module github.com/maxmind/MaxMind-DB

go 1.24.0
go 1.25.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Starting with Go 1.21, the go directive in go.mod should specify the language version (e.g., 1.25) rather than a three-part version with a trailing .0 (e.g., 1.25.0). Running go mod tidy will automatically normalize this to 1.25, which can lead to unexpected diffs in future commits.

Suggested change
go 1.25.0
go 1.25

@oschwald oschwald merged commit 443fc5b into main May 26, 2026
12 checks passed
@oschwald oschwald deleted the wstorey/update-go-version branch May 26, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants