raystack / raccoon

Raccoon is a high-throughput, low-latency service to collect events in real-time from your web, mobile apps, and services using multiple network protocols.
https://raystack.github.io/raccoon/
Apache License 2.0
199 stars 29 forks source link

Go client installation fails due to error fetching proton module #86

Closed turtleDev closed 4 months ago

turtleDev commented 4 months ago

Description When trying to install the Go Raccoon client, the module download fails with the error message.

go: github.com/raystack/raccoon/clients/go@latest (v0.0.0-20240710154126-beabdf2e8805) requires go.buf.build/raystack/gw/raystack/proton@v1.1.131: unrecognized import path "go.buf.build/raystack/gw/raystack/proton": https fetch: Get "https://go.buf.build/raystack/gw/raystack/proton?go-get=1": dial tcp: lookup go.buf.build on 49.205.72.130:53: no such host

To Reproduce

$ mkdir go-raccoon-example
$ cd go-raccoon-example
$ go mod init go-raccoon-example
$ go get github.com/raystack/raccoon/clients/go
go: github.com/raystack/raccoon/clients/go@latest (v0.0.0-20240710154126-beabdf2e8805) requires go.buf.build/raystack/gw/raystack/proton@v1.1.131: unrecognized import path "go.buf.build/raystack/gw/raystack/proton": https fetch: Get "https://go.buf.build/raystack/gw/raystack/proton?go-get=1": dial tcp: lookup go.buf.build on 49.205.72.130:53: no such host

Expected behavior Download of the go client should happen without any errors.

Additional context go env

GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/turtledev/.cache/go-build'
GOENV='/home/turtledev/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/turtledev/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/turtledev/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/turtledev/devel/scribble/go-raccoon-example/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-build1443854059=/tmp/go-build -gno-record-gcc-switches'
turtleDev commented 4 months ago

Resolved in #88