Repository navigation
Port to jbuilder, ocaml-migrate-parsetree (alternate history of #374) - #391
Merged
Merged
Conversation
The commit after this one is the port of Lwt to jbuilder. As part of that port, ppx_lwt_ex.ml is renamed to ppx_lwt.ml. The original, dummy ppx_lwt.ml is deleted. If this is all done in one commit, the resulting blame shows that ppx_lwt.ml was entirely written during the jbuilder port. This is misleading, and would harm history investigations in the future. For this reason, the deletion of the dummy ppx_lwt.ml is factored out into its own commit. In this commit, the PPX does not build, nor pass tests. Maintainer's note: this actual commit was created by Anton Bachin (@aantron); though the change itself was originally made by the author, Andrew Ray (@andrewray). [skip ci]
This also ports the PPX to ocaml-migrate-parsetree. The work in this commit, and the preceding one, was done by Andrew Ray (@andrewray) in #374. These two commits are just a more blame-friendly version; the detailed history is visible #374. Some number of follow-on commits will probably be needed to fully stabilize and finalize the port. Also, this commit breaks some packages that depend on Lwt incorrectly. We will probably take steps to break them more softly than is being done by this commit alone. Builds on 4.05 are temporarily disabled, due to jbuilder not working with the 4.05 betas. We will address this by building on trunk later. This port disables coverage via Bisect completely (#319). We will restore that in follow-on work; in the meantime, we expect few enough edits to the test suite to be made that we can run the test suite with coverage in a separate branch that does not yet have this commit, and cherry-pick commits over if any development of the test suite occurs. The build system produced by this commit is a bit of a chimera: it adopts jbuilder without adopting modern packaging best practices. We need to do the latter slowly, to avoid breaking projects that depend on Lwt without proper warning (#293). Work along this direction had already started (#301, #338, #370), and this jbuilder port will make it easier to continue. The port also pre-emptively solves a lot of other issues with the build system. See the pull request for any issue links, to be added over the coming days. Maintainer's note: squash and summary done by Anton Bachin (@aantron).
Closed
Contributor
|
This looks great! Thank you for cleaning up the PR and making it maintainable. |
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This is just a simplified history of #374, the excellent port of Lwt to jbuilder by @andrewray. It's basically a squash of that PR, preceded by a careful renaming of
ppx_lwt_ex.mltoppx_lwt.ml, so that git and GitHub are able to track that file's history in a way that makes sense to humans.Resolves #374.
Resolves #365.
This should also resolve a lot of other issues with the Lwt build system (#364, #363, #344, maybe #205, maybe others). We will look into each one of those separately after the merge.
See the commit messages, especially of
Port to jbuilder, for details, including things that are temporarily broken by the port. Those will be fixed soon, and certainly before the 3.1.0 release.