-
Notifications
You must be signed in to change notification settings - Fork 18k
Unknown go command variable GOTELEMETRY - how to disable telemetry? #67424
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
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
This was not a question, but indeed a bug. The command So, please re-open this issue. Thanks. |
Read the "[Update ...]" notice at the top of the section where you saw the |
Ok, I found how to turn it off: https://go.dev/doc/telemetry#config |
This snippet turns off telemetry how GO_TELEMETRY_DIR="$HOME/.config/go/telemetry";
# Create the directory if it doesn't already exist.
[ ! -d "$GO_TELEMETRY_DIR" ] && mkdir -m 0755 "$GO_TELEMETRY_DIR";
echo "off $(date +%Y-%m-%d)" > "$GO_TELEMETRY_DIR/mode";
chmod 0666 "$GO_TELEMETRY_DIR/mode";
# Remove all gathered telemetry.
[ -d "$GO_TELEMETRY_DIR/local" ] && rm -r "$GO_TELEMETRY_DIR/local";
[ -d "$GO_TELEMETRY_DIR/upload" ] && rm -r "$GO_TELEMETRY_DIR/upload";
I don't like the term telemetry, so I wasn't going to install yet another program with the term in its name just to turn off the thing! |
Go version
go1.22.1
Output of
go env
in your module/workspace:What did you do?
I've read this issue which links to this telemetry paper, which says, that in order to completely disable telemetry I have to execute
go env -w GOTELEMETRY=off
.What did you see happen?
When I do, I get:
go env -w GOTELEMETRY=off go: unknown go command variable GOTELEMETRY
What did you expect to see?
I'd expect some kind of success message.
As I can see in
~/.config/go/telemetry/
go is already collecting telemetry data, but not uploading it (yet). But I don't trust it and I just want to disable the whole process, because I don't want my compiler to send any telemetry data about my use of it to anyone, however small it might be. From my point of view this is a freaking nightmare!So, how can I - as of now - shut this down?
The text was updated successfully, but these errors were encountered: