Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

dep init error #1249

Closed
dongjiang1989 opened this issue Oct 9, 2017 · 2 comments
Closed

dep init error #1249

dongjiang1989 opened this issue Oct 9, 2017 · 2 comments

Comments

@dongjiang1989
Copy link

dongjiang1989 commented Oct 9, 2017

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

master brach

What dep command did you run?

dep init -v

Getting direct dependencies...
Checked 95 directories for packages.
Found 6 direct dependencies.

Root project is "....."
64 transitively valid internal packages
18 external packages imported from 6 projects
(0) ✓ select (root)
......
(3) try github.com/dongjiang1989/net@master
(3) ✗ unable to deduce repository and source type for "golang.org/x/net/http2/hpack": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net/http2/hpack?go-get=1": Get http://golang.org/x/net/http2/hpack?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(3) try github.com/dongjiang1989/[email protected]
(3) ✗ unable to deduce repository and source type for "golang.org/x/net/http2/hpack": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net/http2/hpack?go-get=1": Get http://golang.org/x/net/http2/hpack?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(3) try github.com/dongjiang1989/[email protected]
(3) ✗ unable to deduce repository and source type for "golang.org/x/net/http2/hpack": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net/http2/hpack?go-get=1": Get http://golang.org/x/net/http2/hpack?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(3) try github.com/dongjiang1989/[email protected]
(3) ✗ unable to deduce repository and source type for "golang.org/x/net/http2/hpack": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net/http2/hpack?go-get=1": Get http://golang.org/x/net/http2/hpack?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(3) try github.com/dongjiang1989/[email protected]
(3) ✗ unable to deduce repository and source type for "golang.org/x/net/http2/hpack": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net/http2/hpack?go-get=1": Get http://golang.org/x/net/http2/hpack?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(3) ← no more versions of github.com/dongjiang1989/net to try; begin backtrack
.....
✗ solving failed

Solver wall times by segment:
b-list-pkgs: 46.2536667s
b-list-versions: 43.5964308s
b-deduce-proj-root: 42.5318348s
b-gmal: 34.4102514s
b-source-exists: 4.5388857s
satisfy: 16.7518ms
select-root: 4.9845ms
new-atom: 985.4µs
unselect: 0s
backtrack: 0s
select-atom: 0s
other: 0s

TOTAL: 2m51.3537911s

No versions of github.com/dongjiang1989/net met constraints:
master: unable to deduce repository and source type for "golang.org/x/net/http2/hpack": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net/http2/hpack?go-get=1": Get http://golang.org/x/net/http2/hpack?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
release-branch.go1.6: unable to deduce repository and source type for "golang.org/x/net/http2/hpack": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net/http2/hpack?go-get=1": Get http://golang.org/x/net/http2/hpack?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
release-branch.go1.7: unable to deduce repository and source type for "golang.org/x/net/http2/hpack": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net/http2/hpack?go-get=1": Get http://golang.org/x/net/http2/hpack?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
release-branch.go1.8: unable to deduce repository and source type for "golang.org/x/net/http2/hpack": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net/http2/hpack?go-get=1": Get http://golang.org/x/net/http2/hpack?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
release-branch.go1.9: unable to deduce repository and source type for "golang.org/x/net/http2/hpack": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net/http2/hpack?go-get=1": Get http://golang.org/x/net/http2/hpack?go-get=1: dial tcp 216.239.37.1:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

What did you see instead?

maybe Golang.org is blocked in China. Can't run go get golang.org/x/XX to get Google Golang packages.

how todo now?

@carolynvs
Copy link
Collaborator

Correct, the Chinese firewall blocks golang.org (See #248). I don't know of a workaround but we are working on mirror support in #286, which would let you get these repos from github.com.

@harryge00
Copy link

@dongjiang1989 Have you tried any proxy? I used proxychinas, but still timeout

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

No branches or pull requests

3 participants