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

ci: detect if there are packages with multiple versions #526

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

psafont
Copy link
Member

@psafont psafont commented Dec 1, 2020

This avoid situations like the last merge which broke building the rpm package for xs-opam.

@psafont psafont force-pushed the sanity branch 2 times, most recently from 66d5d43 to 07efe5f Compare December 1, 2020 17:14
versions=$(echo "$the_versions" | wc -w)
# the compiler is allowed to have more than one version because it's a
# separate rpm. xenctrl has 2 versions: dummy and master
if [ "$versions" -gt 1 ] && echo "$pkg" | grep -vqE '^ocaml$|^ocaml-base-compiler$|^ocaml-system$|^xenctrl$' ; then
Copy link
Member Author

@psafont psafont Dec 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to match only 4 exact patterns.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about the ppxlib? I think that needs 2 versions. One for 4.08 and one for 4.10, or does the latest version work with both?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We used to have to versions of the ppx_tools_versiones for 4.06 and 4.08.

With the current ppx ecosystem I don't think we need to have 2 version of any library to support two versions.

I think Ppxlib abstracts over the differences in the ASTs exposed through ocaml-migrate-parsetrees. We cannot use the latest versions of ppxlib or O-M-P because bisect_ppx (PR) and shared-block-ring (unmaintaned) haven't been migrated yet.

Early detection for a situation that causes problems when building the
rpm for the whole repository.

Signed-off-by: Pau Ruiz Safont <[email protected]>
@psafont psafont merged commit a29aec1 into xapi-project:master Dec 9, 2020
@psafont psafont deleted the sanity branch December 9, 2020 10:13
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.

4 participants