KEMBAR78
cmd/go: `go env GOMOD` tries to download newer toolchain · Issue #61455 · golang/go · GitHub
Skip to content

cmd/go: go env GOMOD tries to download newer toolchain #61455

@prattmic

Description

@prattmic

If go.mod says

module example.com

go 1.22

Then running go env GOMOD with 1.21 prints:

$ go env GOMOD
go: downloading go1.22 (linux/amd64)
go: download go1.22 for linux/amd64: toolchain not available

This is a bit silly, as go env needs to determine GOMOD in order to decide to upgrade in the first place.

cc @bcmills

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions