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: improve when we print brackets #861

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

wolfv
Copy link
Contributor

@wolfv wolfv commented Sep 12, 2024

It turns out that conda has a bug where MatchSpec parsing removes everything between round brackets.

This is an issue with rattler-build since we want to produce packages that are compatible.

Our bracket printing algorithm was also not quite accurate because it was creating unnecessary brackets (AND should always have precedence over OR regardless of brackets or not).

This PR adds some tests and fixes this issue.

However, it might invalidate existing lockfiles. I am not sure what to do about that. One could argue, that we should also have a MatchSpecWithSource type that retains the original string.

@baszalmstra baszalmstra merged commit 7d13a20 into conda:main Sep 12, 2024
15 checks passed
@baszalmstra baszalmstra mentioned this pull request Sep 12, 2024
@wolfv wolfv deleted the fix-bracket-printing branch September 24, 2024 12:29
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