Golangci-lint on windows with WSL
Answered
I was configuring my go linter on a project within WSL2, and I installed the `golangci-lint` program inside my WSL2 distro since it's meant to be used to process files within the WSL2 filesystem. I figured this would reduce overhead.
However, when I tried to set the "Path to golangci-lint" from goland, I can't set it for some reason:
the 'OK' button is unavailable even though I have golangci-lint installed on that folder:
Is there any way to make Goland use the WSL-installed golangci-lint or should I download it as a windows executable instead?
Please sign in to leave a comment.
found something online:
https://github.com/xxpxxxxp/intellij-plugin-golangci-lint/issues/106
apparently this is being worked on the go linter plugin side of things
Until it is being implemented on the plugin side, you can use File Watchers as a workaround. It supports running binaries on WSL2 mount since the 2021.3 version of GoLand.