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

Fix add missing pip PREREQ_MARKER #2612

Merged
merged 2 commits into from
Jun 21, 2023
Merged

Conversation

AntoinePrv
Copy link
Member

@AntoinePrv AntoinePrv commented Jun 21, 2023

Fix bug introduced in #2453
Close #2546

const_cast<::Solvable*>(raw()),
SOLVABLE_PROVIDES,
q.raw(),
/* marker= */ -1
Copy link
Member

Choose a reason for hiding this comment

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

Do we know why we need this magic number here?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was only reformated by I believe this magic number was already present pre-refactoring.

The idea is that dep array can be split in to with a magic marker. When retrieving the dependencies, -1 means first part, 1 means second and 0 means everything, including said marker (which is not a valid dependency).
That works if the default maker was used when setting the dependencies...
So yes, a bit of a mess.

See also the test case added in this PR. So far we have no need for markers in provide key so we keep sane defaults.

@AntoinePrv AntoinePrv self-assigned this Jun 21, 2023
@JohanMabille JohanMabille merged commit 608648f into mamba-org:main Jun 21, 2023
20 checks passed
@AntoinePrv AntoinePrv deleted the cyclic-deps branch June 22, 2023 08:22
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.

critical libmamba permissions: The system cannot find the path specified.: "testenv\Scripts\pip.exe"
3 participants