-
Notifications
You must be signed in to change notification settings - Fork 455
Description
Dune package management by default uses upstream and overlays repositories to pull in packages. One can include custom repositories in the dune-workspace that is documented here: https://dune.readthedocs.io/en/latest/tutorials/dune-package-management/repos.html. What is unclear is how this configuration applies to dev tools. @Alizter pointed out in an offline discussion that, for adding constraints to dev tools, one has to mention it in the dune-workspace also by mentioning the path of the lock directory. Which would look something like.
(lock_dir
(path "dev-tools.locks/ocaml-lsp-server")
(constraints
(ocaml-lsp-server (= 1.19.0+ox))
(ocamlformat (= 0.26.2+ox))
(ocaml-variants (= 5.2.0+ox)))
(repositories overlay oxcaml upstream))
It will be good to document this in the tutorial or elsewhere. This could be affected by #12671, however we might need to keep this up to date as it's not clear from the docs currently how to achieve this. Also related to #12732.