Skip to content
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

Merged
merged 9 commits into from
Jul 15, 2021
Merged

Native fixes, and friends #43

merged 9 commits into from
Jul 15, 2021

Conversation

feliam
Copy link
Contributor

@feliam feliam commented Jun 28, 2021

This is a mostly a refactor. Merging some fixes with dev/native-updates.

@feliam feliam changed the title Native fixes, and freinds Native fixes, and friends Jun 28, 2021
@feliam feliam requested review from ESultanik July 6, 2021 21:26
)
for dep in package["dependencies"]
],
dependencies=dependencies.values(),
Copy link
Collaborator

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).

@@ -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):
Copy link
Collaborator

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.

@feliam feliam merged commit fe11579 into master Jul 15, 2021
@feliam feliam deleted the dev/native-updates-merge3 branch July 15, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants