-
Notifications
You must be signed in to change notification settings - Fork 365
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 opam switch list-available pkg.version
pattern
#6186
base: master
Are you sure you want to change the base?
Conversation
1538737
to
32b9d00
Compare
7c83981
to
4a5dc46
Compare
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.
Thanks! As we discussed, I've reworked the change.
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.
I'm not sure ands
made sense in general in the first place. I think we should change the behaviour to use ors
instead.
Otherwise there is no use to allow several parameters. e.g.
$ opam switch list-available ocaml-base-compiler ocaml-variants
# Listing available compilers from repositories: kit-ty-kate, default
# No matches found
If we switch to ors
instead we can also simply remove the addition of the ?concat
, which doesn't seem useful to me.
Ideally we should also have a test showing the behaviour of list-available
with several parameters
If we switch from |
Done in #6318. This should be merged first. I've marked this here PR as queued on it. |
opam switch list-available
pkg.version pattternopam switch list-available pkg.version
pattern
4a5dc46
to
e45202e
Compare
rebased |
…in presence of several pkg.ver arguments
e45202e
to
06b9efd
Compare
new proposal queued on top of #6318 with one extra test |
Adresses #6152
Queued on #6318