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

For each variant, only build compatible packages #447

Merged
merged 1 commit into from
May 25, 2022

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Apr 26, 2022

This checks each local .opam file for an explicit constraint on the version of ocaml. If it doesn't match the platform, the package is skipped.

This is useful when different packages in a repository work on different versions of OCaml. For example, prometheus works on OCaml 4.03, but prometheus-app requires 4.08. Previously, this prevented testing on 4.03 at all.

The opam build uses dune --only-packages to build just the compatible subset.

Fixes #297. I tried testing this on the prometheus repository, but hit ocaml/dune#5621, so I don't know how easy it will be to support this.

It should be fairly easy to extend this to match base-domains too, which would allow merging eio support packages in existing libraries without preventing testing the other packages on older compilers (/cc @bikallem).

@talex5 talex5 marked this pull request as ready for review May 20, 2022 10:03
@talex5
Copy link
Contributor Author

talex5 commented May 20, 2022

Pushed live for testing.

This checks each local .opam file for an explicit constraint on the
version of `ocaml`. If it doesn't match the platform, the package is
skipped.

This is useful when different packages in a repository work on different
versions of OCaml. For example, `prometheus` works on OCaml 4.03, but
`prometheus-app` requires 4.08. Previously, this prevented testing on
4.03 at all.
@talex5 talex5 merged commit 806f3c2 into ocurrent:master May 25, 2022
@talex5 talex5 deleted the filter-compat branch May 25, 2022 13:43
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.

Test packages on the full range of supported OCaml versions
1 participant