Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dune can't use local OPAM switch in context declaration #3264

Closed
argent-smith opened this issue Mar 14, 2020 · 1 comment · Fixed by ocaml/opam-repository#16170
Closed

Dune can't use local OPAM switch in context declaration #3264

argent-smith opened this issue Mar 14, 2020 · 1 comment · Fixed by ocaml/opam-repository#16170

Comments

@argent-smith
Copy link

Expected Behavior

Dune uses the local OPAM switch same as global switch.

Actual Behavior

Dune gives the error message

Reproduction

  1. create a local opam switch in your project directory:

cd boinc-controller && opam create . 4.10.0 -y

  1. write this dune-workspace file:
(lang dune 2.4)
(context
 (opam
  (switch /Users/paul/Development/own/mirage/boinc-controller)
  (merlin)))
  1. run dune build

  2. 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 of dune --version): 2.4.0
  • Version of ocaml (output of ocamlc --version): 4.10.0
  • Operating system (distribution and version): Mac OS 10.14.6 Mojave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant