Skip to content

Conversation

@stevendpclark
Copy link

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 ....
```
require (
github.com/pascaldekloe/name v1.0.1
golang.org/x/tools v0.18.0
golang.org/x/tools v0.29.0
Copy link

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