dune install: ocamlfind point to the wrong directory in a local switch
Open
Nobody has claimed this yet.
build
- Dominant language
- OCaml
- Stars
- 1.9k
- Forks
- 500
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 277
Description
Expected Behavior
Install file at the correct place.
Actual Behavior
In a local switch in which ocamlfind is not installed, dune install use ocamlfind from the current global switch to choose where to install file and try to install package in the global switch instead of the local one.
Reproduction
- Create a global switch and install ocamlfind in it.
- Create a local switch and try to install lablqml.
Specifications
- Version of
dune(output ofdune --version): 2.1.2 - Version of
ocaml(output ofocamlc --version): 4.09.0 - Operating system (distribution and version): Debian sid
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with a global switch containing ocamlfind and a local switch without it, then run dune install for lablqml. Trace how dune install selects ocamlfind and the installation destination; done means the package is installed in the local switch rather than the global switch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100