x/tools/gopls: panic printing version info when using shimmed Go executable #38101
What did you do?
On my machine I use the asdf version manager to manage my Go installation, which wraps the
I realize having to set up a version manager to debug is probably a pain, so I've managed to reproduce reliably in docker using
#!/bin/bash export GO111MODULE=on export GOPATH=/go export PATH=/go/bin:$PATH # Install system dependencies apt-get update && apt-get install -y git curl # Install the latest Go version with asdf git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.8 echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc . $HOME/.asdf/asdf.sh asdf plugin add golang asdf install golang 1.14.1 asdf global golang 1.14.1 # Install the latest version of gopls go get golang.org/x/tools/gopls@master golang.org/x/tools@master # Create a dummy go file and run gopls touch main.go gopls check main.go
What did you expect to see?
No panic, the command runs normally
What did you see instead?
The text was updated successfully, but these errors were encountered:
Thanks for following up! Just mailed https://golang.org/cl/226257, which I hope might do the trick? If you could try it out before I merge it that'd be really helpful. The steps do so are:
$ git clone https://go.googlesource.com/tools $ cd tools $ git fetch "https://go.googlesource.com/tools" refs/changes/57/226257/3 && git cherry-pick FETCH_HEAD $ cd gopls $ go install