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

Allow users to vendor ppxlib as-is, as well as ppx_sexp_conv in the same project #386

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

kit-ty-kate
Copy link
Contributor

@kit-ty-kate kit-ty-kate commented Feb 14, 2023

This happens when e.g. using MirageOS 4+

This PR fixes this issue by making the vendored package part of the ppxlib package (no longer vendored from dune's point-of-vue). This way, when vendoring ppxlib, ppx_sexp_conv is no longer available in the "public namespace" of library names and there is no longer a clash between ppx_sexp_conv from ppxlib and ppx_sexp_conv from another vendored directory.

Now that the ppx_sexp_conv is in the ppxlib namespace, all of its tests and so on were also triggered as part of ppxlib. This isn't desirable so I simply removed the test directory.

Tested successfully with mirage-skeleton (fails with 0.29.0, succeeds with this PR pinned)

@kit-ty-kate kit-ty-kate force-pushed the no-ppx_sexp_conv-vendor branch 2 times, most recently from af67b43 to a8bc98c Compare February 14, 2023 17:01
Copy link
Member

@pitag-ha pitag-ha left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the fix, @kit-ty-kate! This is a very good idea to fix the problem.

@pitag-ha pitag-ha merged commit 5e65da0 into ocaml-ppx:main Feb 14, 2023
kit-ty-kate pushed a commit to ocaml/opam-repository that referenced this pull request Feb 14, 2023
CHANGES:

- Allow users to vendor `ppxlib` as-is, as well as `ppx_sexp_conv` in the same project (ocaml-ppx/ppxlib#386, @kit-ty-kate)
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.

2 participants