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

Don't filter in toposort #560

Merged
merged 3 commits into from
Dec 10, 2023
Merged

Don't filter in toposort #560

merged 3 commits into from
Dec 10, 2023

Conversation

maresb
Copy link
Contributor

@maresb maresb commented Nov 24, 2023

Description

Before this PR, toposort would drop items (the virtual packages). I wouldn't expect a sort operation to do this. This is a major bug hazard, see #556 and also potentially #557. I've spit this out filtering into a separate step.

Other commits implement some minor cleanups along the way.

@maresb maresb requested a review from a team as a code owner November 24, 2023 15:21
Copy link

netlify bot commented Nov 24, 2023

Deploy Preview for conda-lock ready!

Name Link
🔨 Latest commit 41ae11f
🔍 Latest deploy log https://app.netlify.com/sites/conda-lock/deploys/6575e531e4054800084abb42
😎 Deploy Preview https://deploy-preview-560--conda-lock.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@maresb maresb mentioned this pull request Nov 24, 2023
@jamesmyatt
Copy link
Contributor

Any progress on this?

@maresb
Copy link
Contributor Author

maresb commented Dec 6, 2023

Sorry, this stalled out as I couldn't figure out if my assertion was correct.

I suppose we could remove it and proceed blindly, or better replace it with a warning and ask the user to file a report if it's false.

@mariusvniekerk, any insight here? It would be nice to either get test coverage on L122 or remove it as unnecessary.

While __or__ is fancy, using "merge" is more self-explanatory, and it
makes introspection easier.
@maresb maresb force-pushed the dont-filter-in-toposort branch from 19009f0 to 41ae11f Compare December 10, 2023 16:20
@maresb
Copy link
Contributor Author

maresb commented Dec 10, 2023

I'm dropping my assertion and will follow it up later.

@maresb maresb merged commit 795f249 into conda:main Dec 10, 2023
10 checks passed
@maresb maresb deleted the dont-filter-in-toposort branch December 10, 2023 17: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.

2 participants