Remove runtime dependency on OCaml when building a pure Coq project.
Nobody has claimed this yet.
- #4964 by @rgrinberg — closed without merging
- Dominant language
- OCaml
- Stars
- 1.9k
- Forks
- 500
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 277
Description
Desired Behavior
When OCaml is not available in PATH (e.g. if Dune is pulled with nix-shell -p coq dune_2), trying to build a Coq library will trigger the error (tested with Dune 2.9.0):
Error: Program ocamlc not found in the tree or in PATH
which isn't expected since OCaml is not needed to build the project.
Would it be possible to lift this restriction?
Example
For instance, pocklington is a pure Coq library with Dune files and no dependency beyond Coq, so we would expect that it builds fine under nix-shell -p coq dune_2.
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 reviewing the pure Coq project scenario described in the issue and the linked pull request #4964. Trace the Dune build path that checks for ocamlc when building a Coq library. Done means a pure Coq library such as pocklington builds when OCaml is absent from PATH.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100