ocaml / ocaml/dune

dune install: ocamlfind point to the wrong directory in a local switch

Open
#3,025 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Create a global switch and install ocamlfind in it.
  2. Create a local switch and try to install lablqml.

Specifications

  • Version of dune (output of dune --version): 2.1.2
  • Version of ocaml (output of ocamlc --version): 4.09.0
  • Operating system (distribution and version): Debian sid

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.