Skip to content

pkg: documentation of dune-workspace and lock_dir #12756

@Sudha247

Description

@Sudha247

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions