Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: Support globs in
MatchSpec
build strings #3735fix: Support globs in
MatchSpec
build strings #3735Changes from 5 commits
f6dd13c
9a95b2e
624edf8
edd2261
5a33edd
4b50d22
407c4dd
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this mean that a glob string
py3.*
would matchpy310
when it shouldn't have? i.e. we should first escape the existing.
to\.
, and then replace*
by.*
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I am trying to think of other cases convertions to regular expression might have changed (e.g. pattern with
?
).I will add more test cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arf, I support your remark, but this clashes with behavior:
mamba/libmamba/tests/src/specs/test_chimera_string_spec.cpp
Lines 43 to 57 in 374228f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In
conda
, the "full regex mode" only kicks in if the build string is wrapped in^...$
. Otherwise, it's understood as a normal glob string. See docstring and implementation.