-
Notifications
You must be signed in to change notification settings - Fork 1k
the newest dep version cant't get golang package #1322
Comments
@godcong hi, this looks like a network error. Seems to work as expected for me. Can you try again? |
Are you behind the GFW? I remember people having issues with golang.org behind the GFW. |
Yes ! GFW problem !
to do : `
` But there is another problem. @ibrasho @darkowlzz |
I'm behind the GFW and met same problem. However, in my understanding, |
this issue is really annoying to me, could it be made higher priority? |
assuming that it's spelled correctly ( |
Confirmed. On 0.3.0 I can use |
use ignored label:
|
Me too, i use:
run
|
Since you guys can reproduce it, can you git bisect and find out the exact commit where this broke? That would help in finding out what changed that's could be causing this. |
I met the same issue with 0.3.2 |
an example toml when use
it will first deduce the golang.org/x/crypto i logged out on version 0.3.2 its run case like this:/src/github.com/golang/dep/cmd/dep/main.go /src/github.com/golang/dep/manifest.go: /src/github.com/golang/dep/internal/gps/source_manager.go /src/github.com/golang/dep/internal/gps/deduce.go after that deduce will be error:Signal received: waiting for 1 ops to complete... ✗ unable to deduce repository and source type for "golang.org/x/crypto": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/crypto?go-get=1": Get http://golang.org/x/crypto?go- but behind the GFW, it has some problems. |
i removed two function calls: after that ,when use:
the mirror was download correct... |
FWIW - I am also experiencing the same results where the 0.3.0 release is working as expected with the
As an aside, is there any disadvantage to making this the default behavior (i.e. pointing all golang.org repos to github.com/golang in Gopkg.toml), at least in the case of
|
@n3integration the ValidateProjectRoots will check golang.org/x/sys first |
Can you guys, who can reproduce it, try #1527 and see if that fixes the issue? |
@godcong @darkowlzz - confirmed that #1527 resolves the issue on my machine. 🎉 |
The original issue, as posted, is resolved by using HTTP proxy variables. If those aren't working, please file a separate bug. Because that issue is, AFAIK, addressed, i'm closing this issue. There are some other issues being brought up that are ultimately more about #860, and should be considered there; #1527 could be a helpful step towards that, i'm pondering that independently. |
I'm not sure why this issue was closed. I'm behind a proxy that allows "github.com" access but not "golang.org" access. Using the |
The issue is closed because the The expectation is that If your proxy doesn't allow access to The more proper solution for this is registries. Progress towards that is also happening. |
Ok that is helpful information. Thank you.
On Mar 1, 2018 11:25 AM, "sam boyer" <[email protected]> wrote:
The issue is closed because the source option is not *supposed* to help you
work around your local machine's network issues. It's a global setting that
potentially pollutes the ecosystem with conflicts when it's used in that
way.
The expectation is that If your proxy doesn't allow access to golang.org,
then you need a different proxy.
The more proper solution for this is registries. Progress towards that is
also happening.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1322 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAtnbvOGCegzhCVwiM-xXNpFNL2qcx2ks5taCD4gaJpZM4QIu1K>
.
|
if you have a proxy client example(windows): it can visit golang.org to fix this issus |
will it be special env variable like DEP_HTTP_PROXY in future? |
@godcong how to remove two check function(ValidateParams ValidateProjectRoots) and rebuild dep. I can't find their exact location! |
@waliguder fix the function other error will happened. |
I had this issue when using |
the newest dep version cant't get golang package
What is the difference between the two versions?
What version of
dep
are you using (dep version
)?dep 0.3.0
dep 0.3.1/0.3.2
What
dep
command did you run?dep ensure
Gopkg.toml
[[constraint]]
name = "golang.org/x/text"
branch = "master"
source = "github.com/golang/text"
What did you expect to see?
i want get the text package from github.com
when i used dep 0.3.0 that's ok.
What did you see instead?
when i use dep 0.3.1/0.3.2:
error:
✗ unable to deduce repository and source type for "golang.org/x/text": unable to read metadata: unable to
fetch raw metadata: failed HTTP request to URL "http://golang.org/x/text?go-get=1": Get http://golang.org/x
/text?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 ha
s failed to respond.
The text was updated successfully, but these errors were encountered: