If I compile Staticcheck at tip (ba2c208) and then set my GOROOT to Go tip (https://go.googlesource.com/go/+/e32ec4742e3a9b5a28635e20806331afd587b429), as of today's date, and invoke staticcheck with e.g.
I get the following errors:
/Users/kevin/bin/staticcheck ./...
-: internal error in importing "internal/byteorder" (cannot decode "internal/byteorder", export data version 3 is greater than maximum supported version 2); please report an issue (compile)
-: internal error in importing "internal/cpu" (cannot decode "internal/cpu", export data version 3 is greater than maximum supported version 2); please report an issue (compile)
-: internal error in importing "internal/goarch" (cannot decode "internal/goarch", export data version 3 is greater than maximum supported version 2); please report an issue (compile)
-: internal error in importing "math/bits" (cannot decode "math/bits", export data version 3 is greater than maximum supported version 2); please report an issue (compile)
make: *** [Makefile:28: lint] Error 1
A workaround for now is to set my GOROOT to a valid Go 1.26 compile tree.
I understand Go 1.27 is not released yet which is why this is a tracking issue.
If I compile Staticcheck at tip (ba2c208) and then set my GOROOT to Go tip (https://go.googlesource.com/go/+/e32ec4742e3a9b5a28635e20806331afd587b429), as of today's date, and invoke staticcheck with e.g.
I get the following errors:
A workaround for now is to set my GOROOT to a valid Go 1.26 compile tree.
I understand Go 1.27 is not released yet which is why this is a tracking issue.