Works with mise and WSL too!
From my answer in the official Go - VS Code Extension repo:
For anyone using mise (formerly rtx) the solution is to point to wherever mise where go
or which go
says (which should be the mise folder).
However, this will pin it to one specific version due to what seems like a bug (in my case mise install go@latest
installed 1.23.0 instead of 1.23.1 as of writing, and saved it to ~/.local/share/mise/installs/go/1.23.0
).
To fix this, use the asdf-golang plugin (mise p i https://github.com/asdf-community/asdf-golang
) which will install it correctly to ~/.local/share/mise/installs/go/latest/go/bin/go
which you can then add to your settings.json
:
"go.alternateTools": {
"go": "~/.local/share/mise/installs/go/latest/go/bin/go"
},
Top comments (0)