Skip to content

fix(pkg): allow OCaml syntax in dune files with lock dirs - #11026

Merged
rgrinberg merged 1 commit into
mainfrom
ps/rr/fix_pkg___allow_ocaml_syntax_in_dune_files_with_lock_dirs
Oct 19, 2024
Merged

rgrinberg merged 1 commit into
mainfrom
ps/rr/fix_pkg___allow_ocaml_syntax_in_dune_files_with_lock_dirs

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

When there's no OCaml defined in the lock directory, we should try to get the OCaml toolchain without loading any packages.

Signed-off-by: Rudi Grinberg [email protected]

When there's no OCaml defined in the lock directory, we should try to
get the OCaml toolchain without loading any packages.

Signed-off-by: Rudi Grinberg <[email protected]>

<!-- ps-id: 023875b8-4109-4824-a017-71f841ba2bdb -->
@rgrinberg rgrinberg added the package management Dune's package management — `(pkg)` stanza, lockdirs, `dune pkg` commands label Oct 19, 2024
@rgrinberg
rgrinberg merged commit 2dc0e2f into main Oct 19, 2024
@rgrinberg
rgrinberg deleted the ps/rr/fix_pkg___allow_ocaml_syntax_in_dune_files_with_lock_dirs branch October 19, 2024 21:38
anmonteiro pushed a commit to anmonteiro/dune that referenced this pull request Nov 17, 2024
When there's no OCaml defined in the lock directory, we should try to
get the OCaml toolchain without loading any packages.

Signed-off-by: Rudi Grinberg <[email protected]>
@Alizter Alizter added this to the 3.17.0 milestone Jul 9, 2026
punchagan added a commit to punchagan/dune that referenced this pull request Oct 9, 2026
Resolving the findlib configuration runs `ocamlfind` to locate
findlib.conf. That lookup only runs when cross compiling: a findlib
toolchain is configured and OCAMLFIND_CONF is unset. Package management
has no cross compilation support. We switch to the lookup that does not
consult the lock directory similar to
Ocaml_toolchain.of_env_with_findlib (ocaml#11026).

Signed-off-by: Puneeth Chaganti <[email protected]>
punchagan added a commit to punchagan/dune that referenced this pull request Oct 9, 2026
Resolving the findlib configuration runs `ocamlfind` to locate
findlib.conf. That lookup only runs when cross compiling: a findlib
toolchain is configured and OCAMLFIND_CONF is unset. Package management
has no cross compilation support. We switch to the lookup that does not
consult the lock directory similar to
Ocaml_toolchain.of_env_with_findlib (ocaml#11026).

Signed-off-by: Puneeth Chaganti <[email protected]>
punchagan added a commit to punchagan/dune that referenced this pull request Oct 13, 2026
Resolving the findlib configuration runs `ocamlfind` to locate
findlib.conf. That lookup only runs when cross compiling: a findlib
toolchain is configured and OCAMLFIND_CONF is unset. Package management
has no cross compilation support. We switch to the lookup that does not
consult the lock directory similar to
Ocaml_toolchain.of_env_with_findlib (ocaml#11026).

Signed-off-by: Puneeth Chaganti <[email protected]>
punchagan added a commit to punchagan/dune that referenced this pull request Oct 16, 2026
Resolving the findlib configuration runs `ocamlfind` to locate
findlib.conf. That lookup only runs when cross compiling: a findlib
toolchain is configured and OCAMLFIND_CONF is unset. Package management
has no cross compilation support. We switch to the lookup that does not
consult the lock directory similar to
Ocaml_toolchain.of_env_with_findlib (ocaml#11026). It's tricky to write a
test that demonstrates this, though.

Signed-off-by: Puneeth Chaganti <[email protected]>
punchagan added a commit to punchagan/dune that referenced this pull request Oct 26, 2026
Resolving the findlib configuration runs `ocamlfind` to locate
findlib.conf. That lookup only runs when cross compiling: a findlib
toolchain is configured and OCAMLFIND_CONF is unset. Package management
has no cross compilation support. We switch to the lookup that does not
consult the lock directory similar to
Ocaml_toolchain.of_env_with_findlib (ocaml#11026). It's tricky to write a
test that demonstrates this, though.

Signed-off-by: Puneeth Chaganti <[email protected]>
punchagan added a commit to punchagan/dune that referenced this pull request Oct 28, 2026
Resolving the findlib configuration runs `ocamlfind` to locate
findlib.conf. That lookup only runs when cross compiling: a findlib
toolchain is configured and OCAMLFIND_CONF is unset. Package management
has no cross compilation support. We switch to the lookup that does not
consult the lock directory similar to
Ocaml_toolchain.of_env_with_findlib (ocaml#11026). It's tricky to write a
test that demonstrates this, though.

Signed-off-by: Puneeth Chaganti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package management Dune's package management — `(pkg)` stanza, lockdirs, `dune pkg` commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependency cycle when building the lwt project with dune package management

2 participants