odoc required by cram depending on objs/byte
Open
Nobody has claimed this yet.
acknowledged
- Dominant language
- OCaml
- Stars
- 1.9k
- Forks
- 500
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 277
Description
Expected Behavior
> dune runtest
> echo $?
0
Actual Behavior
> dune runtest
File ".foo.objs/byte/_unknown_", line 1, characters 0-0:
Error: Program odoc not found in the tree or in PATH
(context: default)
Hint: opam install odoc
Reproduction
- Create and check into an opam switch with only ocaml and dune
- Create a file
dune-projectwith(lang dune 3.18) - Create empty files
foo.mlandfoo.t - Create the following
dunefile:
(library (name foo))
(cram
(deps
(glob_files .foo.objs/byte/*)))
- Run
dune runtest
Specifications
- Dune 3.18.0
- OCaml 5.3.0
- Ubuntu 24.10
Additional information
Local switch contents
base-bigarray base
base-domains base
base-effects base
base-nnp base
base-threads base
base-unix base
dune 3.18.0
ocaml 5.3.0
ocaml-base-compiler 5.3.0
ocaml-compiler 5.3.0
ocaml-config 3
ocaml-options-vanilla 1
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
Reproduce the report with the shown dune-project, dune file, foo.ml, and foo.t files in a switch containing only OCaml and Dune. Run dune runtest and inspect how the cram dependency glob over .foo.objs/byte causes odoc to be required. Done means the reproduction no longer requires odoc or reports an unexplained missing program.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100