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

feat: add support for conditional dependencies #101

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

prsabahrami
Copy link

No description provided.

) -> (Self, Option<[Literal; 2]>, bool) {
// It only makes sense to introduce a conditional clause when the package is undecided or going to be installed
assert_ne!(decision_tracker.assigned_value(package_id), Some(false));
assert_ne!(decision_tracker.assigned_value(condition), Some(false));
Copy link
Contributor

Choose a reason for hiding this comment

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

The condition might already have any value assigned.

package_id: VariableId,
condition: VariableId,
then: Requirement,
candidates: impl IntoIterator<Item = VariableId>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Its unclear which candidates these are? Is it for the condition, the requirement or the combined set?

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