Thanks, but it looks like that issue is only about enabling `go env -w GOTELEMETRY=off`.
Isn't it incorrect for `go env GOTELEMETRY` to work, yet `go env -u GOTELEMETRY` prints `unknown go command variable GOTELEMETRY`? Shouldn't it insead print something like `go command variable GOTELEMETRY cannot be set with go env`? On Tue, Aug 20, 2024 at 6:04 PM Ian Lance Taylor <i...@golang.org> wrote: > On Tue, Aug 20, 2024 at 5:08 PM will....@gmail.com > <will.fau...@gmail.com> wrote: > > > > Despite showing up an an env var, it's not treated consistently as one: > > > > ❯ go telemetry off > > # nothing printed > > # as expected > > > > ❯ go env | grep GOTELEMETRY= > > GOTELEMETRY='off' > > # as expected > > > > ❯ go env GOTELEMETRY > > off > > # as expected > > > > ❯ go env -changed > > # nothing printed > > # as expected > > > > ❯ go env -u GOTELEMETRY > > go: unknown go command variable GOTELEMETRY > > # expected nothing printed, success > > > > ❯ go env -w GOTELEMETRY=on > > go: unknown go command variable GOTELEMETRY > > # expected nothing printed, success > > > > ❯ go telemetry on > > # snip > > # as expected > > > > ❯ go env | grep GOTELEMETRY= > > GOTELEMETRY='on' > > # as expected > > > > ❯ go env GOTELEMETRY > > on > > # as expected > > > > ❯ go env -changed > > # nothing printed > > # expected to be printed: GOTELEMETRY='on' > > > > ❯ go env -u GOTELEMETRY > > go: unknown go command variable GOTELEMETRY > > # expected nothing printed, success > > > > ❯ go env -w GOTELEMETRY=off > > go: unknown go command variable GOTELEMETRY > > # expected nothing printed, success > > These issues are being discussed on https://go.dev/issue/68960. > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAKbcuKg2N7cK--qytjgRuE6xYgH25gRNL0sfaX1MWBtb%3D6Jz3g%40mail.gmail.com.