-
Notifications
You must be signed in to change notification settings - Fork 797
Install gopls with CGO disabled #3088
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
Comments
I think most tools VS Code Go depends on don't need CGO. |
From my mac,
I think disabling CGO will be ok. |
It should be fine everywhere except freebsd. |
Change https://go.dev/cl/549245 mentions this issue: |
According to @findleyr, gopls's CGO dependency was real (fastwalk). The dependency is removed from the dev branch so once gopls v0.15 is released next year, this problem will go away. I will abandon the cl. |
Cgo is unnecessary to build gopls (and probably some of other tools).
Disable cgo (
CGO_ENABLED=0
), to avoid crashes (#3085, #3039, golang/go#63997) caused by misconfigured C toolchain.The text was updated successfully, but these errors were encountered: