Skip to content

x/telemetry: go install / go run fails for golang.org/x/telemetry/cmd/gotelemetry@latest: "no matching versions for query "latest"" #63825

@pofl

Description

@pofl

What version of Go are you using (go version)?

$ go version
go version go1.21.3 linux/amd64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/pofl/.cache/go-build'
GOENV='/home/pofl/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/pofl/go/pkg/mod'
GONOPROXY=''
GONOSUMDB='github.com/staffbase/*'
GOOS='linux'
GOPATH='/home/pofl/go'
GOPRIVATE=''
GOPROXY='https://[email protected]:[email protected]/artifactory/api/go/sb-go'
GOROOT='/home/linuxbrew/.linuxbrew/Cellar/go/1.21.3/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/linuxbrew/.linuxbrew/Cellar/go/1.21.3/libexec/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.3'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/pofl/analytics-service/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2312798008=/tmp/go-build -gno-record-gcc-switches'

What did you do?

$ go run golang.org/x/telemetry/cmd/gotelemetry@latest on
go: golang.org/x/telemetry/cmd/gotelemetry@latest: no matching versions for query "latest"
$ go install golang.org/x/telemetry/cmd/gotelemetry@latest
go: golang.org/x/telemetry/cmd/gotelemetry@latest: no matching versions for query "latest"

What did you expect to see?

That the documented commands work. go run is documented here. go install is documented here.

What did you see instead?

The above outputs. One thought: Could this error be caused by the fact that I'm using a GOPROXY? 🤔

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions