-
Notifications
You must be signed in to change notification settings - Fork 298
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
Erroneous build delay #140
Comments
I am seeing dependencies not being executed. In particular preparation. |
That's totally it |
Just confirmed this too. I had something being depended on twice and observed this. |
Perhaps using solve for dependencies may be a good fix here? |
@johnbellone solve has a dependency on Gecode and some other stuff. I doubt you want it to solve the graph for you. |
@sethvargo Gotcha, testing something out now :). |
The fix is small - I can make it today if nobody else beats me to it.
|
This issue happens when a software is both a transitive dependency at the software level, and a top level project dependency. We were blindly shifting all the project deps to the end of the build order as an optimization, and failed to check for the case where we actually *needed* that software in the right place. This patch ensures that, if the software is a dependency of any other software description, it does not get shifted to the end.
Just opened a PR on this. |
Woot! |
This is fixed and merged. Both Seth's are out on vacation, so a release is pending. 👍 |
I think I've found a small bug that's causing dependencies to fail. I need to map out a proper test case but here's what I think is happening:
So let's say I erroneously put
openssl
in my project file (let's says the first item). And I also haveopenssl
as a dep in something else.I think what's happening is that the dedupe is shifting explicit deps in a project to the end regardless of a software definition's deps.
So take a software def called nginx that says:
with a project like so:
So I think the dedupe happens first (again I haven't validated) and THEN the explicit deps are shifted to the end. So that means openssl gets shifted to then end.
I'll try and validate this but I wanted to get this out there.
The text was updated successfully, but these errors were encountered: