Skip to content

Conversation

@Alizter
Copy link
Collaborator

@Alizter Alizter commented Apr 22, 2025

We simplify the implementation of dune exec further and now dune exec and dune exec -w share the same implementation.

One difference with before (which can be observed in the tests) is that arg[0] is now set to an absolute path. This is still valid within the arg[0] convention, but we could think about changing it back to a relative path.

  • Might be a good time to improve some of the doc here?

@Alizter Alizter force-pushed the refactor-exec branch 4 times, most recently from e187e24 to 768fb1b Compare April 24, 2025 19:01
@Alizter Alizter marked this pull request as ready for review April 24, 2025 19:02
@Alizter Alizter requested a review from rgrinberg April 24, 2025 19:03
@Alizter
Copy link
Collaborator Author

Alizter commented Apr 25, 2025

The test which signals a segfault seems to crash out in the ubuntu CI but seems fine on macos and my machine (nixos). Not sure what is happening there.

@rgrinberg
Copy link
Member

@gridbugs can you review this one?

Alizter added 9 commits May 7, 2025 23:13
We test how `dune exec` interacts with failing programs.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
There is no good reason for this module to exist. We explode it's
contents and simplify the implementation of dune exec.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
Signed-off-by: Ali Caglayan <alizter@gmail.com>
Signed-off-by: Ali Caglayan <alizter@gmail.com>
Signed-off-by: Ali Caglayan <alizter@gmail.com>
Signed-off-by: Ali Caglayan <alizter@gmail.com>
Signed-off-by: Ali Caglayan <alizter@gmail.com>
Signed-off-by: Ali Caglayan <alizter@gmail.com>
Signed-off-by: Ali Caglayan <alizter@gmail.com>
@Alizter Alizter enabled auto-merge May 9, 2025 10:20
@rgrinberg rgrinberg disabled auto-merge May 11, 2025 10:16
@rgrinberg rgrinberg merged commit 6fa1f6e into ocaml:main May 11, 2025
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants