Skip to content

Conversation

@Leonidas-from-XIV
Copy link
Collaborator

This is a companion PR to #12902. Where #12902 resolves the dune binary to be called to be correct, this PR prepends an extra entry to the PATH variable so the environment will point to the right dune instead of whatever was captured in the environment (potentially by accident).

It has a non-essential dependency on #12916 to show that the Dune binary is correctly resolved in all cases.

@Leonidas-from-XIV Leonidas-from-XIV force-pushed the nested-dune-call-part-ii branch 2 times, most recently from 893aeab to a21316e Compare December 12, 2025 10:35
@Leonidas-from-XIV Leonidas-from-XIV force-pushed the nested-dune-call-part-ii branch 2 times, most recently from db38af0 to 7df6f1b Compare December 17, 2025 10:41
@Alizter Alizter self-requested a review December 18, 2025 09:38
Signed-off-by: Marek Kubica <marek@tarides.com>
Signed-off-by: Marek Kubica <marek@tarides.com>
Signed-off-by: Marek Kubica <marek@tarides.com>
Signed-off-by: Marek Kubica <marek@tarides.com>
We don't register the dependency because we will not build it but we add
it to the type to know whether the package depended on Dune.

Signed-off-by: Marek Kubica <marek@tarides.com>
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg rgrinberg merged commit f2cb5ca into ocaml:main Dec 21, 2025
30 checks passed
@rgrinberg
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dune should run itself when a package build command tries to run dune

2 participants