Replace matchX options in packageRules with a single "match" string #31662
Pinned
rarkins
started this conversation in
Suggest an Idea
Replies: 2 comments
-
|
I think as an additional Matcher to cover advanced use cases it makes sense. That being said >80% of usecases I see are simple comparisons and for those vaildation and writing of rules would become harder. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I have a current need where I want to write some package rule which would be dependent/conditional on the presence of another package being used. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Tell us more.
Now that all "exclude" are gone, and all "match" are AND'd, it's a lot simpler to consolidate these all into a single
matchstring which can supportAND,ORand bracketing(). Thematchwould then behave similarly to SQLWHEREstatements.Here's our current list with their matching type:
SQL has the concepts of ANY and ALL plus also NOT.
I think our "regex or glob" concept would be more intuitive/readable if it was split up, e.g.
"matchPackageNames": ["a", "b", "!c", "!d"]could bepackageName = ANY ["a", "b"] AND packageName != ANY ["c", "d"]Beta Was this translation helpful? Give feedback.
All reactions