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

Port to ocaml-migrate-parsetree #127

Merged
merged 3 commits into from
Mar 22, 2017
Merged

Port to ocaml-migrate-parsetree #127

merged 3 commits into from
Mar 22, 2017

Conversation

let-def
Copy link
Contributor

@let-def let-def commented Mar 7, 2017

This is port of the project to ocaml-migrate-parsetree. The library aims at making ppx portable accross compiler versions.

The API is likely to change in the upcoming days, so this is not ready for merging.

@avsm
Copy link
Member

avsm commented Mar 14, 2017

Has this interface settled down now @let-def? We're interested in unblocking mirage compilation on OCaml 4.05 to try AFL -- cc @yomimono @talex5

@let-def
Copy link
Contributor Author

let-def commented Mar 14, 2017

I think so. The library might receive a few update before 4.05, but the API will remain compatible.

@let-def
Copy link
Contributor Author

let-def commented Mar 22, 2017

Ok, I think the final API made it to ocaml-migrate-parsetree. It has not been merged yet, but it would be nice to rerun tests after (I don't think I can?) and maybe consider merge.

PR: ocaml/opam-repository#8772

@avsm
Copy link
Member

avsm commented Mar 22, 2017

restarted Travis

Copy link
Member

@avsm avsm left a comment

Choose a reason for hiding this comment

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

Thanks for this! Could you also add a dependency on ocaml-migrate-parsetree to the opam file, so that CI picks it up?

@let-def
Copy link
Contributor Author

let-def commented Mar 22, 2017

I am not sure how to express the opam constraints:

The package optionally depends on ocaml-migrate-parsetree and ppx_tools_versioned. If both are available, then the ppx can be built.

Since ocaml-migrate-parsetree is a direct dependency of ppx_tools_versioned, the former can probably be omitted, but that would be slighly underspecifying the constraints. Can you check that the opam file correctly specify the optional deps and the resulting conditional compilation?

@avsm
Copy link
Member

avsm commented Mar 22, 2017

Since ocaml-migrate-parsetree is a direct dependency of ppx_tools_versioned

It's fine to just depend on ppx_tools_versioned then, as long as we remember that we need to fix things up if the direct dependencies change in the future. That'll be picked up revdeps testing most likely even if we do forget.

@avsm avsm changed the title [WIP][do-not-merge] Port to ocaml-migrate-parsetree Port to ocaml-migrate-parsetree Mar 22, 2017
@avsm
Copy link
Member

avsm commented Mar 22, 2017

fails on 4.05 but thats expected due to Lwt for now -- thanks for this contribution!

@avsm avsm merged commit 25a1d72 into mirage:master Mar 22, 2017
@avsm avsm mentioned this pull request Mar 22, 2017
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