Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Godep restore fails even though the package is in $GOPATH #461

Open
liyichao opened this issue Apr 25, 2016 · 3 comments
Open

Godep restore fails even though the package is in $GOPATH #461

liyichao opened this issue Apr 25, 2016 · 3 comments

Comments

@liyichao
Copy link

As you know, because China's GFW we can not access golang.org. I git clone the package to GOPATH. It used to work, but in the new godep:

Error determining repo root for golang.org/x/crypto/bcrypt godep: error downloading dep (golang.org/x/crypto/bcrypt): unrecognized import path "golang.org/x/crypto/bcrypt" Error determining repo root for golang.org/x/crypto/blowfish godep: error downloading dep (golang.org/x/crypto/blowfish): unrecognized import path "golang.org/x/crypto/blowfish"

It seems godep will ping golang.org no matter it is already downloaded or not.

@freeformz
Copy link

Where did you git clone the package to?

@liyichao
Copy link
Author

    cd ${GOPATH}/src/golang.org/x
    git clone https://github.com/golang/crypto.git

@freeformz
Copy link

I believe this ping is part of the golang.org/x/tools/go/vcs package which godep uses.

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

No branches or pull requests

2 participants