Skip to content

Address errors running tool with Go 1.24 rc2 #1

Open
stevendpclark wants to merge 1 commit into
loggerhead:masterfrom
stevendpclark:support-go-1_24
Open

Address errors running tool with Go 1.24 rc2 #1
stevendpclark wants to merge 1 commit into
loggerhead:masterfrom
stevendpclark:support-go-1_24

Conversation

@stevendpclark

Copy link
Copy Markdown

Updating the x/tools package and compiling with Go 1.23 fixes errors running against the 1.24 rc2 release.

enumer: internal error: package "context" without types was imported from ....

Updating the x/tools and compiling with Go 1.23 fixes errors running against the 1.24 rc releases.

```
enumer: internal error: package "context" without types was imported from ....
```
Comment thread go.mod
require (
github.com/pascaldekloe/name v1.0.1
golang.org/x/tools v0.18.0
golang.org/x/tools v0.29.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.

This also fixes a build failure on 1.25.0:

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

From what I can ascertain, v0.26.0 is the oldest version of golang.com/x/tools that will successfully build on Go 1.25.0.

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