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

Dep fails to import from glide #1052

Closed
RaviTezu opened this issue Aug 23, 2017 · 2 comments
Closed

Dep fails to import from glide #1052

RaviTezu opened this issue Aug 23, 2017 · 2 comments

Comments

@RaviTezu
Copy link
Contributor

RaviTezu commented Aug 23, 2017

dep init is not able to read an import from glide.yaml:

package: git.url.example.com/testorg/testrepo
import:
- package: git.url.example.com/importorg/importrepo
  repo: [email protected]:importorg/importrepo
  vcs: git

Fails with this error message:
unable to deduce repository and source type for "git.url.example.com/importorg/importrepo": unable to read metadata: go-import metadata not found

It is looking for go-import meta tag and "git.url.example.com" don't have any meta tags. But glide was able to pull those dependencies. Is this something that is not supported in dep yet?

What version of Go (go version) and dep (git describe --tags) are you using?

go version go1.7.3 darwin/amd64 and v0.3.0-151-g1f6d6bb

What dep command did you run?

dep init -v
unable to deduce repository and source type for "git.url.example.com/importorg/importrepo": unable to read metadata: go-import metadata not found

What did you expect to see?

Dep init import from glide files.

What did you see instead?

Fails to import and generate the Gopkg files.

@darkowlzz
Copy link
Collaborator

@RaviTezu thanks for creating an issue for this. This looks like a support for private/enterprise patterns. There's discussion going on about the same in #286 .

This issue is similar to #1061 . You can read more over there.

I'm not sure how glide does it, but dep depends on the repo metadata, like the go get tool.

@RaviTezu
Copy link
Contributor Author

@darkowlzz You're right. This is for Github Enterprise.
I will close this issue as we have #286 for tracking. Also, I will take a look at glide on how they are doing it. Thanks for the reply.

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

3 participants