-
Notifications
You must be signed in to change notification settings - Fork 541
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
only get dependencies of given subpackage not working #274
Comments
Yeah, I just reproduced this. My
But The Godeps file is only supposed to be used for pinning versions, but I wonder if there's a lingering bug there. |
I think I found the problem:
It looks like we automatically import the package at the base of the repo:
In the case of terraform, the base package imports tons of stuff. In pre-0.9, it makes sense for us to have done that. But now, it doesn't. The problem is that the current glide.yaml file doesn't indicate whether or not I need to import the base package. I'll have to chat with @mattfarina about how we want to handle this. |
the problem sounds similar to #166 (comment) and #270 ("overzealous" pulling of dependencies from the base packages) - maybe it would be possible to make sure that the same resolution mechanism is used for both for consistency (if it's not the case already)? |
Yeah, it does sound like that issue. What if we only pull the base package if the subpackage
|
^^ @dmitris actually, looking at your earlier pull request, adding support for So if I'm thinking about this correctly, what we want is to support two distinct cases. I think they go like this: I don't want the base package: package: technosophos.com/x/scratch
import:
- package: github.com/hashicorp/terraform
subpackages:
- dag I do want the base package: package: technosophos.com/x/scratch
import:
- package: github.com/hashicorp/terraform
subpackages:
- .
- dag |
I find the subpackage I would like glide to behave more like
Here's how I would like to be able to test glide - it should pull all the repositories required to build the project declaring glide.yaml, but only those ones. (I guess the test dependencies are special cases - maybe there should be a special option like |
I think this fixes it. |
Fixed #274: Was fetching dependencies of top level repo even when not imported
This issue drastically improved the speed of glide for us. Huge huge thanks for this. |
Yea, it awesome! Thanks |
According to the release notes, since 0.9 only dependencies of specified subpackages should be retrieved recursively, to reproduce:
instead of downloading the dependencies of the dag package it will download all dependencies of terraform. Is the because of Godeps being used? Any way to overwrite the behaviour?
The text was updated successfully, but these errors were encountered: