Skip to content

Bump golang.org/x/tools to v0.51.0 for compatibility with Go v1.27.2 - #247

Merged
matryer merged 1 commit into
matryer:mainfrom
patjakdev:bump-x-tools-v0.51.0
Oct 14, 2026
Merged

matryer merged 1 commit into
matryer:mainfrom
patjakdev:bump-x-tools-v0.51.0

Conversation

@patjakdev

@patjakdev patjakdev commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

go1.27.2 backported the unified export data V5 encoding (golang/go#81188), so moq built against x/tools v0.49.0 fails to load packages with:

cannot decode "context", export data version 5 is greater than maximum supported version 4

x/tools v0.50.0 added V5 decoding; bump to the latest, v0.51.0.

Resolves #246

go1.27.2 backported the unified export data V5 encoding
(golang/go#81188), so moq built against x/tools v0.49.0 fails to load
packages with:

    cannot decode "context", export data version 5 is greater than
    maximum supported version 4

x/tools v0.50.0 added V5 decoding; bump to the latest, v0.51.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@matryer
matryer merged commit d6948c4 into matryer:main Oct 14, 2026
4 checks passed
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.

go 1.27: internal error: package "context" without types was imported from "foo"

3 participants