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

Update to Dune 3.16, fix build of benchmarks, various fixes #222

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

MisterDA
Copy link

@MisterDA MisterDA commented Sep 23, 2022

Dear maintainer,

This PR updates the build system to depend on Dune 3.16 as it gives many niceties and new warnings. Accordingly, it also fixes the new warnings.
I've also seen that the benchmark wouldn't build so I've updated them for core_unix v0.15.0, and declared their dependencies for testing in the opam files.
Last but not least, angstrom-unix, angstrom-lwt-unix and angstrom-async now depend on the same version of angstrom as they are. Although this could be lifted, I think it greatly simplifies integration and debugging.

Thanks!

@MisterDA
Copy link
Author

This PR also somewhat supersedes #206, although mine doesn't use Dune to generate the opam files.

@edwintorok
Copy link
Contributor

Would be good to merge this to fix the CI, as I've just open another PR and ocaml-ci is mostly red there.

I"ve done a test on my fork with ocaml-ci and it is a lot greener than master: https://ocaml.ci.dev/github/edwintorok/angstrom/commit/a95f7bced58e57131e4f8161f4b66becd2561393.
There is a single failure about a lower bound on bigstringaf: https://ocaml.ci.dev/github/edwintorok/angstrom/commit/a95f7bced58e57131e4f8161f4b66becd2561393/variant/%28lower-bound%29

OTOH the github CI will need to be updated since 4.08 and 4.10 will no longer find a solution: https://github.com/edwintorok/angstrom/actions/runs/10819012123/job/30015924784 (those OCaml versions are very old, that'd be fine).

@MisterDA MisterDA changed the title Update to Dune 3.0, fix build of benchmarks, various fixes Update to Dune 3.16, fix build of benchmarks, various fixes Sep 12, 2024
    File "lib_test/test_json.ml", line 9, characters 4-31:
    9 |     Bigstringaf.blit_from_bytes s ~src_off:0 b ~dst_off:0 ~len:n;
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Error: Unbound value Bigstringaf.blit_from_bytes
They're intended for REPL top-level expressions.
Only test latest OCaml 4 and OCaml 5, the other versions are too old
and unsupported.
@MisterDA
Copy link
Author

@seliopou I've revisited and rebased this PR, let me know if anything need to be changed.

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