I’m trying to hack on ocamlformat. Unfortunately, the package doesn’t have instructions on how to build it. So I assume something default and obvious should work.
After looking at the CI config, I tried to do the following but without success
When running the first command from your instructions, I see the following error:
❯ opam switch create . --packages ocaml-system,dune --deps-only --no-install
<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><> 🐫
Switch invariant: ["ocaml-system" "dune"]
[ERROR] Could not determine which packages to install for this switch:
* Missing dependency:
- ocaml-system
unmet availability conditions, e.g. 'sys-ocaml-version = "5.1.1"'
Is there some global configuration I should change? Should I be inside some switch or outside any switch at all before running this command? Or something else?
OCamlformat’s source code contains several packages where one (ocamlformat) depends on the other (ocamlformat-lib) and opam install --deps-only -t . considers them in the wrong order.
I really appreciate your assistance in helping me to figure this out! It took a while even with you hints, and I don’t know how I could do it on my own