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

What did you see happen?

$ go env -changed
GOSUMDB='off'
GCCGO='/usr/bin/gccgo'

What did you expect to see?

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

Comment From: zigo101

Maybe a little related to https://github.com/golang/go/issues/68928

Comment From: gabyhelp

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: seankhliao

see https://go.googlesource.com/go/+/d36353499f673c89a267a489beb80133a14a75f9/src/cmd/go/testdata/script/telemetry.txt#48 GOTELEMETRY is not set through an env var or GOENV, so -changed doesn't report it.

Comment From: zigo101

But why go env shows it?

see https://go.googlesource.com/go/+/d36353499f673c89a267a489beb80133a14a75f9/src/cmd/go/testdata/script/telemetry.txt#48

I don't know what can this prove? Please elaborate more.

Comment From: zigo101

Please re-open this issue. If go env GOTELEMETRY works, then go env -changed should include GOTELEMETRY.

Comment From: ianlancetaylor

At this point this seems the same as #68936.

Comment From: zigo101

Continued at https://github.com/golang/go/issues/68960#issuecomment-2301180830