logoalt Hacker News

sethops1yesterday at 7:20 PM3 repliesview on HN

FYI golangci-lint and gopls are both broken if you try using generic methods.


Replies

tkw01536today at 7:08 AM

I’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

adonovanyesterday at 10:49 PM

Broken how? Please report an issue. The latest gopls should support generic methods.

show 1 reply
atsjieyesterday at 7:34 PM

Thank you for the headsup!