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

Support OR clauses in depexts field #4829

Open
raphael-proust opened this issue Sep 7, 2021 · 2 comments
Open

Support OR clauses in depexts field #4829

raphael-proust opened this issue Sep 7, 2021 · 2 comments

Comments

@raphael-proust
Copy link
Contributor

Some external dependencies may be available as either of a set of packages from the distribution. E.g., rust is available under Archlinux when installing either rust or rustup. Currently conf-rust checks for the rust package. It would be useful if we could specify

 ["rust" | "rustup" ] {os-distribution = "arch"}

as a depext. This does not seem to be possible (according to the documentation).

Are there issues I haven't considered?

(This issue is possibly related to #3140 in that there is overlap in the concerns.)

@dra27
Copy link
Member

dra27 commented Sep 7, 2021

This would be expressible, if not terribly elegantly, by having conf-rust and conf-rustup and depending on (("conf-rust" | "conf-rustup"). (cf. ocaml/opam-repository#19338)

@dra27
Copy link
Member

dra27 commented Sep 7, 2021

(doesn't rule out the feature being useful as well, though!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants