Skip to content

Capture right dune in subshell#14529

Merged
Leonidas-from-XIV merged 1 commit into
ocaml:mainfrom
Leonidas-from-XIV:capture-right-dune
May 15, 2026
Merged

Capture right dune in subshell#14529
Leonidas-from-XIV merged 1 commit into
ocaml:mainfrom
Leonidas-from-XIV:capture-right-dune

Conversation

@Leonidas-from-XIV
Copy link
Copy Markdown
Collaborator

The tests inject the right dune, but if the test launches a shell script that gets dune from the path it might get the wrong one.

My original hypothesis in #14528 was wrong, the outer dune is correct and it depends on the right dune, but the inner dune pointed to one in my PATH and not to the in-development one.

Closes #14528

The tests inject the right dune, but if the test launches a shell script
that gets `dune` from the path it might get the wrong one.

My original hypothesis in ocaml#14528 was wrong, the outer `dune` is correct
and it depends on the right dune, but the inner `dune` pointed to one in
my `PATH` and not to the in-development one.

Closes ocaml#14528

Signed-off-by: Marek Kubica <marek@tarides.com>
@Alizter
Copy link
Copy Markdown
Collaborator

Alizter commented May 14, 2026

Note that this problems should go away with #14373.

@Leonidas-from-XIV
Copy link
Copy Markdown
Collaborator Author

Is #14373 injecting the dune binary folder into the PATH for the tests? That would indeed fix this issue as well.

@Leonidas-from-XIV Leonidas-from-XIV merged commit 3d2c2ce into ocaml:main May 15, 2026
31 checks passed
@Leonidas-from-XIV Leonidas-from-XIV deleted the capture-right-dune branch May 15, 2026 08:15
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 test does not register dependency on in-development dune

3 participants