Skip to content

Conversation

stefanb
Copy link

@stefanb stefanb commented Jun 19, 2025

What's being changed?

Fixes build with Go 1.25 (currently at rc1, final expected in August)

The build error with Go 1.25 manifested as:

go1.25rc1 build ./...
# golang.org/x/tools/internal/tokeninternal
../../../go/pkg/mod/golang.org/x/tools@v0.13.0/internal/tokeninternal/tokeninternal.go:78:9: invalid array length -delta * delta (constant -256 of type int64)

Updated via

go1.25rc1 get -u golang.org/x/tools
go: upgraded go 1.19 => 1.23.0
go: upgraded golang.org/x/crypto v0.21.0 => v0.39.0 go: upgraded golang.org/x/mod v0.12.0 => v0.25.0
go: upgraded golang.org/x/net v0.23.0 => v0.41.0
go: upgraded golang.org/x/sync v0.3.0 => v0.15.0
go: upgraded golang.org/x/sys v0.20.0 => v0.33.0
go: upgraded golang.org/x/term v0.18.0 => v0.32.0
go: upgraded golang.org/x/text v0.14.0 => v0.26.0
go: upgraded golang.org/x/tools v0.13.0 => v0.34.0

go1.25rc1 mod tidy

Updated Go to supported version 1.24.

Updated linter to current one supporting Go 1.24 and fixed linter warnings.

Is this PR related to an existing issue?

Related:

Check off the following:

  • This PR follows the CONTRIBUTION.md guidelines
  • I have self-reviewed my changes before submitting the PR

stefanb added 2 commits June 19, 2025 19:49
The build error with Go 1.25 manifests as:

go1.25rc1 build ./...
# golang.org/x/tools/internal/tokeninternal
../../../go/pkg/mod/golang.org/x/tools@v0.13.0/internal/tokeninternal/tokeninternal.go:78:9: invalid array length -delta * delta (constant -256 of type int64)

go1.25rc1 get -u golang.org/x/tools
go: upgraded go 1.19 => 1.23.0
go: upgraded golang.org/x/crypto v0.21.0 => v0.39.0
go: upgraded golang.org/x/mod v0.12.0 => v0.25.0
go: upgraded golang.org/x/net v0.23.0 => v0.41.0
go: upgraded golang.org/x/sync v0.3.0 => v0.15.0
go: upgraded golang.org/x/sys v0.20.0 => v0.33.0
go: upgraded golang.org/x/term v0.18.0 => v0.32.0
go: upgraded golang.org/x/text v0.14.0 => v0.26.0
go: upgraded golang.org/x/tools v0.13.0 => v0.34.0

go1.25rc1 mod tidy

Related:
* Go proposal: golang/go#73205
* Upstream `golang.org/x/tools` fix: https://go-review.googlesource.com/c/tools/+/675955 / golang/tools@2815c8b
* Problem found in Homebrew/homebrew-core#226636
@stefanb
Copy link
Author

stefanb commented Jun 19, 2025

@stefanb stefanb changed the title build(deps): Update golang.org/x/tools to v0.34.0 for Go 1.25 build(deps): Update golang.org/x/tools to v0.34.0 for Go 1.25 compatibility Jul 19, 2025
@stefanb stefanb changed the title build(deps): Update golang.org/x/tools to v0.34.0 for Go 1.25 compatibility fix: Update golang.org/x/tools to v0.34.0 for Go 1.25 compatibility Jul 19, 2025
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.

1 participant