Skip to content
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

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

Open
ke00ke opened this issue Apr 28, 2020 · 0 comments
Open

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

ke00ke opened this issue Apr 28, 2020 · 0 comments

Comments

@ke00ke
Copy link

ke00ke commented Apr 28, 2020

D:\ideaProject\kratos>go get github.com/bilibili/discovery
go: github.com/bilibili/discovery upgrade => v1.1.2
go get: github.com/bilibili/discovery@v1.1.2 requires
github.com/bilibili/kratos@v0.2.2 requires
github.com/prometheus/client_model@v0.0.0-20190220174349-fd36f4220a90: 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/client_golang@v1.5.1 requires
github.com/prometheus/client_model@v0.1.0/go.mod: verifying module: github.com/prometheus/client_model@v0.1.0/go.mod: Get "https://sum.golang.org/lookup/github.com/prometh
eus/client_model@v0.1.0": 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/discovery@v1.1.2 requires
github.com/bilibili/kratos@v0.2.2 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant