discovery icon indicating copy to clipboard operation
discovery copied to clipboard

go get github.com/bilibili/discovery 报错无法解决

Open ke00ke opened this issue 5 years ago • 0 comments

D:\ideaProject\kratos>go get github.com/bilibili/discovery go: github.com/bilibili/discovery upgrade => v1.1.2 go get: github.com/bilibili/[email protected] requires github.com/bilibili/[email protected] requires github.com/prometheus/[email protected]: invalid pseudo-version: does not match version-control timestamp (2019-01-29T23:31:27Z)

然后编辑go.mod 添加 replace github.com/prometheus/client_model => github.com/prometheus/client_model v0.1.0 继续 D:\ideaProject\kratos>go get github.com/bilibili/discovery go: github.com/prometheus/[email protected] requires github.com/prometheus/[email protected]/go.mod: verifying module: github.com/prometheus/[email protected]/go.mod: Get "https://sum.golang.org/lookup/github.com/prometh eus/[email protected]": dial tcp 172.217.160.113:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or esta blished connection failed because connected host has failed to respond.

D:\ideaProject\kratos>go env set GO111MODULE=on set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\51656\AppData\Local\go-build set GOENV=C:\Users\51656\AppData\Roaming\go\env set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOINSECURE= set GONOPROXY= set GONOSUMDB= set GOOS=windows set GOPATH=D:\ckh\GOPATH set GOPRIVATE= set GOPROXY=direct set GOROOT=C:\Go set GOSUMDB=sum.golang.org set GOTMPDIR= set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64 set GCCGO=gccgo set AR=ar set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD=D:\ideaProject\kratos\go.mod set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\51656\AppData\Local\Temp\go-build287291146=/tmp/go-build -gn o-record-gcc-switches

D:\ideaProject\kratos>set GOPROXY=https://goproxy.cn

D:\ideaProject\kratos>go get github.com/bilibili/discovery go: github.com/bilibili/discovery upgrade => v1.1.2 go get: github.com/bilibili/[email protected] requires github.com/bilibili/[email protected] requires github.com/remyoudompheng/bigfft@v0.0.0-20190806203942-babf20351dd7e3ac320adedbbe5eb311aec8763c: reading https://goproxy.cn/github.com/remyoudompheng/bigfft/@v/v0.0.0-2019 0806203942-babf20351dd7e3ac320adedbbe5eb311aec8763c.mod: 404 Not Found server response: not found: github.com/remyoudompheng/bigfft@v0.0.0-20190806203942-babf20351dd7e3ac320adedbbe5eb311aec8763c: invalid pseudo-version: revision is longer tha n canonical (babf20351dd7)

ke00ke avatar Apr 28 '20 02:04 ke00ke