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

Remove Alire.Requisites and Alire.Boolean_Trees #701

Merged
merged 10 commits into from
Mar 5, 2021

Conversation

mosteo
Copy link
Member

@mosteo mosteo commented Mar 5, 2021

Taking advantage that we're early in the 2021 dev cycle, I'm doing a couple of internal refactorings that will ease new developments in the future.

This one is a preparatory step for #323. With our current index syntax, there are some parts of the expression logic that can be removed. Namely, Alire.Requisites and its dependencies is no longer needed after a few tweaks. This also removes some complex logic about requisites <-> properties interactions. Also, dependencies/properties/availability all share the expression code now whereas availability before was separate.

Also some dead code for if/then/else expressions has been removed.

mosteo added 10 commits March 5, 2021 15:51
There is a minor improvement for trees in which a vector with a single value is
promoted to the single value itself. As vectors are delimited by '(' ')', there
are a few test outputs that required eliminating these former extra
parentheses.
This allows more dead code removal and some further internal simplifications.
No longer needed, Requisites were useful in the old index for general
expressions, but not anymore in our case-restricted index. Some quite obscure
portions of Alire code can be thus removed.
It bugboxes anyway, so it's not currently usable
@mosteo mosteo marked this pull request as ready for review March 5, 2021 15:29
@mosteo mosteo requested a review from Fabien-Chouteau March 5, 2021 15:30
@mosteo mosteo merged commit 821fecb into alire-project:master Mar 5, 2021
@mosteo mosteo deleted the refactor/requisites branch March 5, 2021 15:52
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