-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: disabling telemetry causes telemetry files to be written #69269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CC @matloob, @samthanawalla, @findleyr. |
Once |
Change https://go.dev/cl/611456 mentions this issue: |
Change https://go.dev/cl/611876 mentions this issue: |
The telemetry script test checks for the existence of telemetry data as a baseline before checking that the act of setting telemtetry to off while in local mode doesn't produce telemetry data. Of course, when we're running on platforms where telemetry is not supported, telemetry data won't be produced on disk either way. Only check for the existence of telemetry data on supported platforms. For #69269 Change-Id: I3a06bbc3d3ca0cf0203b84883f632ecfd9445aae Reviewed-on: https://go-review.googlesource.com/c/go/+/611876 Reviewed-by: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Michael Matloob <[email protected]>
+1 for $ tree %APPDATA%\go\telemetry
.
├── local
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── local.2025-03-01.json
│ ├── local.2025-03-08.json
│ ├── local.2025-03-15.json
│ ├── local.2025-03-22.json
│ ├── local.2025-03-29.json
│ ├── local.2025-04-05.json
│ ├── local.2025-04-12.json
│ ├── local.2025-04-19.json
│ ├── local.2025-05-03.json
│ ├── upload.token
│ └── weekends
├── mode
└── upload |
Go version
go version go1.23.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
go telemetry off
ls $HOME/.config/go/telemetry/local
What did you see happen?
I saw telemetry data in this directory:
What did you expect to see?
I expected that this directory would be nonexistent since I have never before run a go command with this home directory, except for a command that expresses my desire to have telemetry disabled.
This wouldn't be an issue if telemetry could be disabled with an environment variable (#68960), and it would be less of an issue if telemetry data were written to a more appropriate location (#68988).
The text was updated successfully, but these errors were encountered: