Skip to content

go.mod: bump x/tools to v0.30.0 for Go 1.24 support#25

Merged
yuzefovich merged 1 commit intojordanlewis:masterfrom
mw5h:bump-x-tools
Mar 13, 2026
Merged

go.mod: bump x/tools to v0.30.0 for Go 1.24 support#25
yuzefovich merged 1 commit intojordanlewis:masterfrom
mw5h:bump-x-tools

Conversation

@mw5h
Copy link
Contributor

@mw5h mw5h commented Mar 13, 2026

Summary

  • Bump golang.org/x/tools from v0.17.0 to v0.30.0
  • Raises minimum Go version from 1.13 to 1.22

x/tools v0.17.0 can't parse Go 1.24's new package export format, causing gcassert to fail:

internal error: package "fmt" without types was imported from "github.com/cockroachdb/apd/v3"

This is blocking CI for projects like cockroachdb/apd and will also affect cockroachdb/cockroach (which uses Go 1.25).

Verified that gcassert builds, tests pass, and works correctly against cockroachdb/apd with this change.

Fixes #24.

🤖 Generated with Claude Code

x/tools v0.17.0 can't parse Go 1.24's new package export format,
causing gcassert to fail with errors like:

  internal error: package "fmt" without types was imported from "..."

Bump to v0.30.0 which supports Go 1.24. This raises the minimum Go
version to 1.22.

Also update CI: bump Go from 1.18 to 1.22/1.23/1.24 matrix, and
update actions/checkout to v4 and actions/setup-go to v5.

Fixes jordanlewis#24.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yuzefovich yuzefovich merged commit ad3fae1 into jordanlewis:master Mar 13, 2026
3 checks passed
mw5h added a commit to mw5h/apd that referenced this pull request Mar 13, 2026
Update gcassert pin to ad3fae17aff which includes the x/tools bump
to v0.30.0 (jordanlewis/gcassert#25), fixing Go 1.24 support.

Remove the Go < 1.24 cap that was added as a workaround in cockroachdb#146.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

gcassert doesn't support Go 1.24: x/tools v0.17.0 can't parse new export format

2 participants