-
Notifications
You must be signed in to change notification settings - Fork 1k
[DO NOT MERGE, need fix verification] manifest: skip ProjectRoot validation for alt source #1527
Conversation
So i'm kinda confused about why this PR helps people with their problems. There are a number of places where the same |
when skip validate in ProjectRoot |
Any progress? a toml file like this will failed the deduce will visit the golang.org first... |
02279f5
to
6bebcdd
Compare
Alternate source could be used to bypass network reachability issues and when that is the case, PR validation fails because gps tries to reach the project over network and the project isn't reachable. This change skips PR validation for projects with alternate source only.
6bebcdd
to
d3681c0
Compare
I've updated this PR with changes to project root deduction that would make dep trust the @godcong can you build this PR and check if it solves all the issues? |
This change modifies the ValidateParams() function ignore deducing project root of projects that have an alternate source. This is needed when the project repository is not reachable and an alternate repo is used.
d3681c0
to
a8a1a5f
Compare
i build it based on 1dc2d8b this commit for something is ok! but when i import some subproject from golang.org it will failed. gopkg.toml: [prune] i logged out the call stack: 2018/02/13 23:25:40 golang.org/x/crypto/bcrypt
validateParams: could not deduce external imports' project roots the source is so it cannot be skipped |
i tried some like this test.go: gopkg.toml: ✗ golang.org/x/crypto/bcrypt However, these projects are not direct dependencies of the current project: Either import/require packages from these projects so that they become direct 2018/02/13 23:52:22 v golang.org/x/crypto/bcrypt {github.com/golang/crypto master} Solver wall times by segment: TOTAL: 10.8867732s Solving failure: No versions of golang.org/x/crypto/bcrypt met constraints: |
some suggest for this problem |
@darkowlzz We need this PR very hard, because of the ProjectRoot validation, almost all the developers in China can't download dependencies with |
@helphi sorry but this PR was just an experiment to understand how the failures are happening. Please use HTTP proxy as a workaround for GFW issue. Refer https://stackoverflow.com/questions/10383299/how-do-i-configure-go-to-use-a-proxy for an example of using HTTP proxy. |
@darkowlzz you know, if we have a proxy witch can through GFW, can we be annoyed with this issue? |
if you have a proxy, run |
@godcong for example, there is a package named |
Haven't this problem solved? It is so annoying. |
It is not necessary anymore, we can use the new |
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! |
What does this do / why do we need it?
Alternate source could be used to bypass network reachability issues and
when that is the case, PR validation fails because gps tries to reach
the project over network and the project isn't reachable.
This change skips PR validation for projects with alternate source only.
What should your reviewer look out for in this PR?
Implementation. Any possible side-effect?
Do you need help or clarification on anything?
Any way to do any better for validation other than skipping?
Which issue(s) does this PR fix?
fixes #1322