You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adonovan
changed the title
honnef.co/go/tools@v0.3.3/go/ir: []byte to [4]byte conversion in net/netip package causes builder panic
@v0.3.3/go/ir: []byte to [4]byte conversion in net/netip package causes builder panic
Dec 18, 2022
This is already fixed on the master branch (as of 39b8ce7). It'll be part of the next release, which is planned to release shortly after Go 1.20 does.
Generally speaking. the latest release of Staticcheck supports the latest release of Go (and the one before that), and the upcoming release of Go is supported by the master branch.
The IR builder appears to lack support for the new slice-to-array (not pointer-to-array) conversions supported in the upcoming go1.20 and already used in the standard library, such as in the net/netip package. This causes it to panic.
(@taking has spent a lot of effort thinking about this logic in x/tools/go/ssa so you may want to confer with him.)
Typical panic:
https://storage.googleapis.com/go-build-log/8bcc4906/linux-amd64-boringcrypto_ad40fb56.log
The text was updated successfully, but these errors were encountered: