Skip to content

cmd/go: "go env GOTELEMETRY" should not be an alias of "go telemetry" #68936

@zigo101

Description

@zigo101

Go version

go version go1.23.0 linux/amd64

Output of go env in your module/workspace:

.

What did you do?

$ go env GOTELEMETRY
off
$ go telemetry
off
$ go env -changed
GOSUMDB='off'
GOTOOLCHAIN='local'
GCCGO='/usr/bin/gccgo'

What did you see happen?

go env treats GOTELEMETRY as env var.

What did you expect to see?

go env sometimes treats GOTELEMETRY as env var, sometimes not. It is confused.

Consistency is important. go env and go env -changed should have the same attitude.

Related: #68930

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions