-
Notifications
You must be signed in to change notification settings - Fork 470
dune describe workspace returns an incorrect root #6379
Copy link
Copy link
Closed
ocaml/opam-repository
#22498Description
Expected Behavior
dune describe workspace should return a (relative or absolute) path to the project's root.
Actual Behavior
dune describe workspace always returns . as the workspace root.
Reproduction
Assume the following setup:
foo/
|-- dune-project
|-- a/
|-- dune
|-- a.ml
where:
dune-projectcontains(lang dune 3.5.0)a/dunecontains(library (name a))a/a.mlis an empty file
When run from foo/a/, the command dune describe workspace returns . as the project's root.
Instead, it should return .. or an absolute path to foo/.
This cannot be tested using cram tests, because paths are sanitized (using the --sanitize-for-tests flag) so that paths are reproducible (i.e. do not depend on where the test directory is located on the machine where tests are run).
Specifications
- Version of
dune(output ofdune --version): 3.5.0 - Version of
ocaml(output ofocamlc --version): 4.14.0 - Operating system (distribution and version): linux, LinuxMint 21
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels