Go version
go version go1.24.5 linux/amd64
Output of go env
in your module/workspace:
AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE=''
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='=~/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='~/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1563174757=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/dev/null'
GOMODCACHE='~/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='~/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='~/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/lib/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.24.5'
GOWORK=''
PKG_CONFIG='pkg-config'
What did you do?
Initialize go.
What did you see happen?
Telemetry is stored in ~/.config/go/telemetry
.
What did you expect to see?
Telemetry files should be stored in $XDG_CACHE_HOME/go
(as they're temporary files) or $XDG_STATE_HOME
; either way they shouldn't go in ~/.config
, which is usually version-controlled, backed up, and roams from computer to computer.
Comment From: gabyhelp
Related Issues
- cmd/go: disabling telemetry causes telemetry files to be written #69269 (closed)
- cmd/go: telemetry data should not be in $XDG_CONFIG_HOME #68988
- Bug: Go 1.23+ ignores custom GOTELEMETRY/GOTELEMETRYDIR settings via env vars or go env config file #72756 (closed)
- cmd/go: GOTELEMETRY is not documented by go help environment #68928 (closed)
- Unknown go command variable GOTELEMETRY - how to disable telemetry? #67424 (closed)
- Should be able to disable Go telemetry using an environment variable #74439 (closed)
- x/tools/gopls: no datas for gotelemetry #67781 (closed)
- telemetry.go.dev/privacy: "Internal Server Error" #68859 (closed)
- x/telemetry: telemetry fails if certain config directories do not exist #62706 (closed)
- go version is slow and creates junk files #69177 (closed)
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)