-
Notifications
You must be signed in to change notification settings - Fork 470
Dune can't use local OPAM switch in context declaration #3264
Copy link
Copy link
Closed
ocaml/opam-repository
#16170Description
Expected Behavior
Dune uses the local OPAM switch same as global switch.
Actual Behavior
Dune gives the error message
Reproduction
- create a local opam switch in your project directory:
cd boinc-controller && opam create . 4.10.0 -y
- write this
dune-workspacefile:
(lang dune 2.4)
(context
(opam
(switch /Users/paul/Development/own/mirage/boinc-controller)
(merlin)))
-
run
dune build -
see the error message:
⟩ dune build
File "dune-workspace", line 4, characters 10-61:
4 | (switch /Users/paul/Development/own/mirage/boinc-controller)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: "/Users/paul/Development/own/mirage/boinc-controller" is an invalid
context name.
Specifications
- Version of
dune(output ofdune --version): 2.4.0 - Version of
ocaml(output ofocamlc --version): 4.10.0 - Operating system (distribution and version): Mac OS 10.14.6 Mojave
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels