ocaml / dune

A composable build system for OCaml.
https://dune.build/
MIT License
1.61k stars 399 forks source link

`(dirs ..` with paths of depth ≥ 2 are just ignored #5313

Open smondet opened 2 years ago

smondet commented 2 years ago

I have vendors/dune containing:

(dirs project1/src/lib2 project2/src/lib42)

And dune (2.9.1) just ignores them (cannot find those libraries).

I'd expect either:

(¹); I know about (vendored_dirs ..) but I want @check and @fmt to still work on the vendored libraries)

nojb commented 2 years ago

I think you should be able to do what you want by using (subdir ...):

(subdir project1 (subdir src (dirs lib2)))
(subdir project2 (subdir src (dirs lib42)))

but I agree it is not very ergonomic at the moment.