This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
"dep init" doesn't use local git configuration #831
Labels
Comments
if you're using gitlab, https works. I posted an update to the FAQ on how to set it up. |
These are not the same when using
When passing a URL with no indicator of the CVS system, we rely on metadata to find the repository. That's why we pass the The error you posted is because you actually tried this for a non-existing URL ( |
I'd recommend you create a [[constraint]]
name = "code.xyz.internal/some-team/some-library"
source = "code.xyz.internal/some-team/some-library.git"
branch = "master And try |
closing this - the underlying issues remain, but this issue is duplicative of other outstanding issues. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
"go get" uses local git configuration when fetching dependencies. "dep init" doesn't behave in the same way.
Example:
We have a dependency which is in a private repo (e.g. code.xyz.internal). When we run the following:
it succeeds, due to the following git configuration (within ~/.gitconfig)
which tells git where to look for a private repo. This will not, however, work with "dep init", which is expected to behave the same way as "go get".
What version of Go (
go version
) anddep
(git describe --tags
) are you using?Go version: 1.8
Dep version: v0.1.0-215-g911cd22
What
dep
command did you run?dep init -v
Output:
list versions for code.xyz.internal/some-team/some-library(): unable to deduce repository and source type for "code.xyz.internal/some-team/some-library": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://code.xyz.internal/some-team/some-library?go-get=1": Get http://code.xyz.internal/some-team/some-library?go-get=1: dial tcp: lookup code.xyz.internal: no such host
What did you expect to see?
Dependencies resolved correctly
What did you see instead?
see above
The text was updated successfully, but these errors were encountered: