5 ms·
FYI golangci-lint and gopls are both broken if you try using generic methods.
by sethops1 28d ago
FYI golangci-lint and gopls are both broken if you try using generic methods.
- atsjie 28d agoThank you for the headsup!
- adonovan 28d agoBroken how? Please report an issue. The latest gopls should support generic methods.
- sethops1 28d agoAh my bad gopls is fine; I forgot to run go install golang.org/x/tools/gopls@latest after upgrading Go itself.
- tkw01536 28d agoI’ve been able to run golangci-lint locally just fine. However I’ve not had much success running it on CI, with at least the 1.27rcs. I encountered some panic deep within staticcheck, and ended up turning off that specific linter on CI (better than not running it at all). There was a tracking issue for go1.27 support at [1]. However that is now closed, which might imply that it should be working. [1] https://github.com/golangci/golangci-lint/issues/6643 https://github.com/golangci/golangci-lint/issues/6643