-
Notifications
You must be signed in to change notification settings - Fork 50
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
Be compatible with OCaml 5.00.0 #294
Conversation
Out of curiosity, what changed in 5.0, or why is Unix.map_file not enough anymore ? |
This patch is needed due to: ocaml/dune#5494 For a long support (including 4.05), we need to use Due to the fact that |
Thank you for the explanation |
Thanks for this @dinosaure -- looks like Line 9 in 554d411
|
Indeed, I don't understand why we need such library for |
I'd personally be also ok with raising the lower bound to 4.08.0 and removing all these Given that OCaml 5.0.0 will have an impact on the ecosystem, I'd be in favour to drop the legacy boilerplate rather sooner than later to focus with a clear picture on the new major release (which may result in dropping even further legacy). Another reason is CI time / how many cycles are spent on a library. Given that both here and in opam-repository the CI attempts to compiler for all supported OCaml compilers, dropping support for old compilers is beneficial for the environment. If we discover issues in cstruct we can always backport them to releases that work with OCaml before 4.08. On a related note, since cmdliner 1.1.0 is supporting only OCaml >= 4.08.0, I can see that a huge part of our ecosystem is moving there already. |
It seems a good argument indeed. I think the best is to see the intersection between:
If we don't find any packages inside this intersection, we can safely drop the support of |
@dinosaure sounds good. A quick |
…ct-lwt and cstruct-async (6.1.0) CHANGES: **breaking changes** - The deprecated functions `Cstruct.len`, `Cstruct.add_len`, `Cstruct.set_len`, and `Cstruct.blit_to_string` have been removed (@hannesm mirage/ocaml-cstruct#291) - Implement host_endian (@haesbaert mirage/ocaml-cstruct#292, fixes mirage/ocaml-cstruct#72) - Compatibility with OCaml 5.0.0 (@dinosaure mirage/ocaml-cstruct#294) - Drop support of OCaml < 4.08.0, remove bigarray-compat dependency (@hannesm mirage/ocaml-cstruct#298) - Fix year in chages (@reynir mirage/ocaml-cstruct#297)
…ct-lwt and cstruct-async (6.1.0) CHANGES: **breaking changes** - The deprecated functions `Cstruct.len`, `Cstruct.add_len`, `Cstruct.set_len`, and `Cstruct.blit_to_string` have been removed (@hannesm mirage/ocaml-cstruct#291) - Implement host_endian (@haesbaert mirage/ocaml-cstruct#292, fixes mirage/ocaml-cstruct#72) - Compatibility with OCaml 5.0.0 (@dinosaure mirage/ocaml-cstruct#294) - Drop support of OCaml < 4.08.0, remove bigarray-compat dependency (@hannesm mirage/ocaml-cstruct#298) - Fix year in chages (@reynir mirage/ocaml-cstruct#297)
…ct-lwt and cstruct-async (6.1.0) CHANGES: **breaking changes** - The deprecated functions `Cstruct.len`, `Cstruct.add_len`, `Cstruct.set_len`, and `Cstruct.blit_to_string` have been removed (@hannesm mirage/ocaml-cstruct#291) - Implement host_endian (@haesbaert mirage/ocaml-cstruct#292, fixes mirage/ocaml-cstruct#72) - Compatibility with OCaml 5.0.0 (@dinosaure mirage/ocaml-cstruct#294) - Drop support of OCaml < 4.08.0, remove bigarray-compat dependency (@hannesm mirage/ocaml-cstruct#298) - Fix year in chages (@reynir mirage/ocaml-cstruct#297)
…ct-lwt and cstruct-async (6.1.0) CHANGES: **breaking changes** - The deprecated functions `Cstruct.len`, `Cstruct.add_len`, `Cstruct.set_len`, and `Cstruct.blit_to_string` have been removed (@hannesm mirage/ocaml-cstruct#291) - Implement host_endian (@haesbaert mirage/ocaml-cstruct#292, fixes mirage/ocaml-cstruct#72) - Compatibility with OCaml 5.0.0 (@dinosaure mirage/ocaml-cstruct#294) - Drop support of OCaml < 4.08.0, remove bigarray-compat dependency (@hannesm mirage/ocaml-cstruct#298) - Fix year in chages (@reynir mirage/ocaml-cstruct#297)
…ct-lwt and cstruct-async (6.1.0) CHANGES: **breaking changes** - The deprecated functions `Cstruct.len`, `Cstruct.add_len`, `Cstruct.set_len`, and `Cstruct.blit_to_string` have been removed (@hannesm mirage/ocaml-cstruct#291) - Implement host_endian (@haesbaert mirage/ocaml-cstruct#292, fixes mirage/ocaml-cstruct#72) - Compatibility with OCaml 5.0.0 (@dinosaure mirage/ocaml-cstruct#294) - Drop support of OCaml < 4.08.0, remove bigarray-compat dependency (@hannesm mirage/ocaml-cstruct#298) - Fix year in changes of 6.0.1 (@reynir mirage/ocaml-cstruct#297)
Add a new dependency on
cstruct-unix
:mmap.1.2.0
to be compatible with OCaml 5.00.0 (/cc @kit-ty-kate).EDIT: it's not strictly a compatibility with OCaml 5.00 but a compatibility with
dune.3.0.0
too. Not sure where the problem was introduced but it seems a clear path for me.