Hi, I’m building a project with opam and dune.
According to the documentation of opam, command opam install . --deps-only --working-dir
should install all the dependencies for me, but it didn’t do anything.
$ opam install . --deps-only --working-dir
$ dune build
File "lib/dune", line 4, characters 12-20:
4 | (libraries camomile))
^^^^^^^^
Error: Library "camomile" not found.
Hint: try:
dune external-lib-deps --missing @@default
$ dune external-lib-deps --missing @@default
Error: The following libraries are missing in the default context:
- camomile
Hint: try:
opam install camomile
Dune still wants me to install the dependencies manually.
Here is my dune-project
file:
(package
(name ...)
...
(depends camomile))
^^^^^^^^
Here is my .opam
file (generated by dune):
depends: [
"dune" {>= "2.9"}
"camomile"
^^^^^^^^^^
"odoc" {with-doc}
]
7 posts - 5 participants