-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve VCS detection #68
Comments
What error is returned at what point in your case? |
Just as an observation, it looks like that the https://godoc.org/golang.org/x/tools/go/vcs#RepoRootForImportPath
It returns a type RepoRoot struct {
VCS *Cmd
// Repo is the repository URL, including scheme.
Repo string
// Root is the import path corresponding to the root of the
// repository.
Root string
}
|
I'm familiar with that codebase. Are you suggesting importing You'll find this lib detects things like git.launchpad.net which the |
Does Is it a goal to have the same behavior for resolving import paths to underlying VCS information as |
@mattfarina I don't have the exact error right now, but it was basically just |
Closing since this has not had any movement in 5 years and some things have changed since then. Note, the go tooling has changed to detect things differently. This may be useful for this package but I would as those requests come as separate issues. |
Hi,
Thanks for the great work on glide! It seems pretty streaigh-forward to me and helps really a lot to manage dependecies.
There is one thing I've noticed about the VCS detection. I have some dependendies of my project in private repositories and Glide cannot detect the vcs from the package name. I can fix this by specifying
repo
andvcs
in theglide.yml
, but I think it could be done automatically. Thego-import
header in the HTML fetched afterwards (see https://github.com/Masterminds/vcs/blob/master/vcs_remote_lookup.go#L107) contains the right VCS. The HTML is just not fetched, because the function returns the error before. By changing the flow here, the usibility could be improved without breaking anything.Best regards
The text was updated successfully, but these errors were encountered: