-
Notifications
You must be signed in to change notification settings - Fork 20
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
Native fixes, and friends #43
Conversation
) | ||
for dep in package["dependencies"] | ||
], | ||
dependencies=dependencies.values(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I originally created copies of the dependency objects to ensure that modifications didn't affect the original, but this should be fine (and faster).
it_depends/cargo.py
Outdated
@@ -102,42 +112,39 @@ def resolve_from_source( | |||
if cache is not None: | |||
cache.add(package) | |||
for dep in package.dependencies: | |||
cache.set_resolved(dep) | |||
if not cache.was_resolved(dep): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think cache.set_resolved
first checks if it was already resolved, so this might be slightly slower, but it's fine to keep it this way.
This is a mostly a refactor. Merging some fixes with dev/native-updates.
Cargo single resolve fix:
Determinism related problem. It used to chose among a few optional dependencies. Now mutiple optional deps are collapsed into one dependency. Ex llvm-ir -> llvm-sys. Note that crates.io fail to show all optionals deps
Test fixes (Examples of each type of project supported #14)
Initial attempt to Breath-First dep search (needs propper algo). (Optional max depth for dependency resolution #16)