You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
➜ ~ brew upgrade dep
Error: dep 0.3.0 already installed
What dep command did you run?
dep init -v
➜ cti git:(master) ✗ dep init -v
unable to deduce repository and source type for "git.meiqia.com/business_platform/idg/idg":
unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL
"http://git.meiqia.com/business_platform/idg/idg?go-get=1": Get
http://git.meiqia.com/business_platform/idg/idg?go-get=1: EOF
What did you expect to see?
generate a Gopkg.toml and a Gopkg.lock file,and vendor folder.
@chyroc hi, 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 .
The go get tool depends on some metadata from the code hosting service to determine some information it needs. cmd/go#Remote-import-paths describes the same in details.
Similarly, dep uses the same metadata from the code repos to resolve the source of repo. So, when you get the error
unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL
it means that the code repo is not compatibly setup with the go tools.
Since I don't have any personal experience with this, I'm not sure if the code hosting services provide some option to enable the metadata tags on the repo.
What version of Go (
go version
) anddep
(git describe --tags
) are you using?What
dep
command did you run?What did you expect to see?
generate a Gopkg.toml and a Gopkg.lock file,and vendor folder.
What did you see instead?
no file,no folder, error info is showed above.
the sub-package do not matth the right url.
self-git-hub
git.meiqia.com
create the problem?and i test the main.go:
and run
dep init -v
, and it successed...so, how can i solve the problem?
thank you.
The text was updated successfully, but these errors were encountered: