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

Track raw provider version, rather than rebuilding. #340

Merged
merged 2 commits into from
Feb 14, 2022
Merged

Track raw provider version, rather than rebuilding. #340

merged 2 commits into from
Feb 14, 2022

Conversation

tomprince
Copy link
Contributor

@tomprince tomprince commented Oct 15, 2021

While working on #334, I discovered that provider logic was doing a bunch of duplicate work because it wasn't preserving data it already had. This preserves the provider-known version (which is what deviated_version was calculating), as well as the raw package data from the provider, which is used for calculating requirements, without having to re-find the package.

I think this changes what conda build gets picked, it should now always pick the highest matching build number. I think previously it was random, if there were no build restrictions, and the lowest if there were restrictions.

mach_nix/data/providers.py Outdated Show resolved Hide resolved
@tomprince tomprince marked this pull request as ready for review February 4, 2022 20:19
@tomprince
Copy link
Contributor Author

I think this is ready for review.

Copy link
Owner

@DavHau DavHau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! This simplifies the code

mach_nix/data/providers.py Outdated Show resolved Hide resolved
@tomprince
Copy link
Contributor Author

It looks like this breaks conda, but the CI doesn't actually run the test against conda.

@tomprince
Copy link
Contributor Author

It looks like this breaks conda, but the CI doesn't actually run the test against conda.

Actually, it looks like it is #135 that breaks silently with conda.

@tomprince
Copy link
Contributor Author

I've rebased this (and the following PRs) on #397, to get better CI.

I think the failure with the conda evaluation is an existing error.

@DavHau DavHau merged commit 8af0333 into DavHau:master Feb 14, 2022
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