-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building golang.org/x/tools/cmd/goimports results in error: undefined: ast.Unparen #69391
Comments
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
I don't think this is using go1.22 ?
|
The function in the error message also says it's available in 1.22 https://pkg.go.dev/go/ast#Unparen |
Yes, sorry for the confusion. The version is 1.21.12
|
The currently supported versions of Go are 1.22 and 1.23. To build the most recent versions of x/tools requires at least Go 1.22. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
N/A
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Having this in the
Makefile
:After release of v0.25.0 goimports, it fails with:
What did you expect to see?
Expected not to see the error above.
What did you see instead?
Saw the error which crashes the script I'm using. Rolling back to v0.24.0 and the issue is not there.
The text was updated successfully, but these errors were encountered: