golang / dep

Go dependency management tool experiment (deprecated)

Home Page:https://golang.github.io/dep/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to connect to go.googlesource.com - connection refused and network is unreachable

leguminosa opened this issue · comments

What version of dep are you using (dep version)?

$ dep version
dep:
 version     : v0.5.4
 build date  : 2019-07-01
 git hash    : 1f7c19e
 go version  : go1.12.6
 go compiler : gc
 platform    : linux/amd64
 features    : ImportDuringSolve=false

What dep command did you run?

dep ensure -v -vendor-only

What did you expect to see?

dep ensure process finished normally

What did you see instead?

dep ensure -v -vendor-only Output

$ dep ensure -v -vendor-only
(1/61) Wrote github.com/gorilla/mux@v1.6.1
(2/61) Wrote github.com/tdewolff/parse@v2.3.2
.
.
.
(53/61) Failed to write golang.org/x/net@master
(54/61) Failed to write github.com/jmespath/go-jmespath@0b12d6b5
(55/61) Failed to write google.golang.org/genproto@master
(56/61) Failed to write golang.org/x/text@v0.3.2
(57/61) Failed to write google.golang.org/appengine@v1.6.5
(58/61) Failed to write golang.org/x/sys@master
(59/61) Failed to write golang.org/x/crypto@master
(60/61) Failed to write google.golang.org/grpc@v1.22.0
(61/61) Failed to write github.com/aws/aws-sdk-go@v1.12.65
grouped write of manifest, lock and vendor: error while writing out vendor tree: failed to write dep tree: failed to export golang.org/x/net:
(1) failed to list versions for https://go.googlesource.com/net: fatal: unable to connect to go.googlesource.com:
go.googlesource.com[0: 74.125.24.82]: errno=Connection refused
go.googlesource.com[1: 2404:6800:4003:c03::52]: errno=Network is unreachable

: exit status 128

Appendix

I also try getting the manually like this

go get -v golang.org/x/net Output

go get -v golang.org/x/net
get "golang.org/x/net": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at //golang.org/x/net?go-get=1
golang.org/x/net (download)

cd .; git clone -- https://go.googlesource.com/net /home/nakama/.gvm/pkgsets/go1.13/global/src/golang.org/x/net

Cloning into '/home/nakama/.gvm/pkgsets/go1.13/global/src/golang.org/x/net'...
fatal: unable to connect to go.googlesource.com:
go.googlesource.com[0: 74.125.24.82]: errno=Connection refused
go.googlesource.com[1: 2404:6800:4003:c03::52]: errno=Network is unreachable

package golang.org/x/net: exit status 128

Here's my go's informations

go env Output

$ go env
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/nakama/.cache/go-build"
GOENV="/home/nakama/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/nakama/.gvm/pkgsets/go1.13/global"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/nakama/.gvm/gos/go1.13"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/nakama/.gvm/gos/go1.13/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build274251549=/tmp/go-build -gno-record-gcc-switches"

Here's my Gopkg.lock (only shown some)

Gopkg.lock Content

[[projects]]
branch = "master"
digest = "1:da4b52e542eac65f91f8278b619d24402901c17ed21624b3444a6cf76c2082d7"
name = "golang.org/x/crypto"
packages = [
"pkcs12",
"pkcs12/internal/rc2",
]
pruneopts = ""
revision = "e1110fd1c708ef015366ea01799a23c459593c47"

[[projects]]
branch = "master"
digest = "1:31cd6e3c114e17c5f0c9e8b0bcaa3025ab3c221ce36323c7ce1acaa753d0d0aa"
name = "golang.org/x/net"
packages = [
"context",
"http/httpguts",
"http2",
"http2/hpack",
"idna",
"internal/timeseries",
"trace",
]
pruneopts = ""
revision = "da137c7871d730100384dbcf36e6f8fa493aef5b"

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!