I'm using golang version go1.17.3 linux/amd64 and when I try to install golang.org/x/tools/gopls using this command (as per the docs):
GO111MODULE=on go get golang.org/x/tools/gopls@latest
I get this error:
verifying golang.org/x/tools/[email protected]: zip: not a valid zip file
Any help with this error?
I found the solution. It seems the problem happens when you copy your mod folder from an older installation. The solution is:
go clean -modcache
This will clear your mod cache and allow installation to work again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With