How to make 1.22.9 workspaces work on Ubuntu 24.04 #3622
Replies: 1 comment
-
@AndreasBergmeier6176 To fix this, you’ll want to make sure your environment is correctly set up so that the right Go version is used everywhere. A good way to do this is by setting go env -w GOTOOLCHAIN=local Or: go env -w GOTOOLCHAIN=go1.22.9 Also, make sure your In VS Code, the extension might still be defaulting to the system Go installation. You can force it to use the correct version by setting the GOROOT path in the settings, or adding this to your settings.json: "go.alternateTools": {
"go": "/path/to/go1.22.9/bin/go"
} That should sort it out. Let me know if it still gives you trouble |
Beta Was this translation helpful? Give feedback.
-
We have a workspace with multiple modules. All are defined as using golang 1.22.9.
Now in a module, the extension wants to analyze the encompassing workspace.
It seems to do this with the system Go toolchain :( (which is 1.22.2).
As a result it prints a lot of errors:
What must I configure so that it uses another toolchain?
And by the way - is there a way of preventing/disallowing it to use the system Golang toolchain? It almost never is correct to use that.
Beta Was this translation helpful? Give feedback.
All reactions