Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go Linter does not work with WSL #71

Closed
jaisingh opened this issue Jun 23, 2021 · 2 comments
Closed

Go Linter does not work with WSL #71

jaisingh opened this issue Jun 23, 2021 · 2 comments

Comments

@jaisingh
Copy link

I get a go linter running error when using files access from WSL2 over the network share it exposes. The tool works fine for go projects on the windows filesystem.

@xxpxxxxp
Copy link
Owner

Thanks @jaisingh , I guess it's a path issue, will setup a WSL2 env ASAP to test it, might take a few days.

@xxpxxxxp
Copy link
Owner

xxpxxxxp commented Jul 5, 2021

Hi @jaisingh , I've done deep research, but sadly the plugin is not able to support WSL2 UNC path. It's actually limited by the go binary, related issues: golang/go#37461 microsoft/WSL#5762

In short, WSL2 is using 9P protocol to support file share between Linux and the host Windows. Problem is the 9P protocol doesn't support LockFileEx syscall and Go team refuses to support such case as Rust does. Mapping WSL2 to a driver would not help.

I'm closing this until WSL2 is supported by Go.

@xxpxxxxp xxpxxxxp closed this as completed Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants