Skip to content
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

extension crashes if go.mod uses language version and the local go version is older than the go version in go.mod #3317

Open
hyangah opened this issue Apr 5, 2024 · 0 comments
Assignees
Milestone

Comments

@hyangah
Copy link
Contributor

hyangah commented Apr 5, 2024

Repro case:

$ GOTOOLCHAIN=local go version
go1.21.9
$ cat go.mod
module w

go 1.22

Screenshot 2024-04-05 at 3 41 23 PM

Failed to run '/usr/local/go/bin/go env' (cwd: /Users/hakim/projects/go-qrcode): Error: Command failed: /usr/local/go/bin/go env -json GOPATH GOROOT GOPROXY GOBIN GOMODCACHE
go: downloading go1.22 (darwin/amd64)
go: download go1.22 for darwin/amd64: toolchain not available

go: downloading go1.22 (darwin/amd64)
go: download go1.22 for darwin/amd64: toolchain not available

The root cause is
golang/go#65580
that was closed as a duplicate of golang/go#62278,
which was closed in favor of a better error message.

cc @golang/tools-team

@gopherbot gopherbot added this to the Untriaged milestone Apr 5, 2024
@hyangah hyangah modified the milestones: Untriaged, v0.41.3 Apr 6, 2024
@hyangah hyangah self-assigned this Apr 6, 2024
@hyangah hyangah modified the milestones: v0.41.3, v0.42.0 Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants