]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add go telemetry command and GOTELEMETRY, GOTELEMETRYDIR
authorMichael Matloob <matloob@golang.org>
Wed, 8 May 2024 19:54:12 +0000 (15:54 -0400)
committerMichael Matloob <matloob@golang.org>
Thu, 16 May 2024 20:16:39 +0000 (20:16 +0000)
commit036e93ba7631bb12844f01078979e761144f227f
treee87227b31a086b251666b1aeba25987021baeafd
parent26ed0528c76d10883e0d24ca8b7bb87e62dc4487
cmd/go: add go telemetry command and GOTELEMETRY, GOTELEMETRYDIR

Add the go telemetry command to support setting and viewing the
telemetry mode. Also add the non-settable GOTELEMETRY and GOTELEMETRYDIR
variables to go env, which contain the mode and telemetry dir.

For #67111

Change-Id: Id7e89cefe30acfe3d865fa467315fe7cda975de9
Reviewed-on: https://go-review.googlesource.com/c/go/+/584535
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/envcmd/env.go
src/cmd/go/internal/telemetrycmd/telemetry.go [new file with mode: 0644]
src/cmd/go/main.go
src/cmd/go/testdata/script/telemetry.txt [new file with mode: 0644]
src/cmd/internal/telemetry/telemetry.go
src/cmd/internal/telemetry/telemetry_bootstrap.go