-
-
Notifications
You must be signed in to change notification settings - Fork 379
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
staticcheck: Fails with Go 1.24: internal error in importing ... (unsupported version: 2) #1627
Comments
It seems that it was already fixed on master in v0.5.1...master $ go1.24rc2 run honnef.co/go/tools/cmd/staticcheck@master .
main.go:6:2: should merge variable declaration with assignment on next line (S1021)
exit status 1
$ go1.24rc2 run honnef.co/go/tools/cmd/staticcheck@master -debug.version
staticcheck (devel, v0.6.0-0.dev.0.20250112185414-21df14b396f6)
Compiled with Go version: go1.24rc2
Main module:
honnef.co/go/[email protected] (sum: h1:V0zVc5mjXZdaUSO26gkYCmjBSju5zKVkHY0O7K4TxLg=)
Dependencies:
github.com/BurntSushi/[email protected] (sum: h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs=)
golang.org/x/exp/[email protected] (sum: h1:1P7xPZEwZMoBoz0Yze5Nx2/4pxj6nw9ZqHWXqP0iRgQ=)
golang.org/x/[email protected] (sum: h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0=)
golang.org/x/[email protected] (sum: h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=)
golang.org/x/[email protected] (sum: h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE=) So it likely just needs a new release. |
The next release of Staticcheck will coincide with the Go 1.24 release. |
[Edit: none of the following makes sense for the error message. Apologies.]
|
As this works on master but not with the latest release of Staticcheck, I believe this is actually caused by using an old version of |
Yes. This makes more sense. |
While testing Go 1.24 (rc1 and rc2) in
I noticed staticcheck is failing with a simple test from homebrew formula
staticcheck.rb
, reproduced below:Same test with go 1.23 works fine:
The text was updated successfully, but these errors were encountered: