Skip to content

Add DUNE_ROOT environment variable#12438

Merged
Alizter merged 2 commits intoocaml:mainfrom
sir4ur0n:feature/add-root-env-var
Sep 10, 2025
Merged

Add DUNE_ROOT environment variable#12438
Alizter merged 2 commits intoocaml:mainfrom
sir4ur0n:feature/add-root-env-var

Conversation

@sir4ur0n
Copy link
Copy Markdown
Contributor

@sir4ur0n sir4ur0n commented Sep 8, 2025

Closes #12399

@Leonidas-from-XIV
Copy link
Copy Markdown
Collaborator

Thanks for the contribution! Can you sign off your commit and add a cram test to show that DUNE_ROOT works and how its precedence with --root works out?

@sir4ur0n sir4ur0n force-pushed the feature/add-root-env-var branch from f08d92f to cbb3ee3 Compare September 10, 2025 08:15
@sir4ur0n
Copy link
Copy Markdown
Contributor Author

@Leonidas-from-XIV done, please review 🙏

Copy link
Copy Markdown
Collaborator

@Leonidas-from-XIV Leonidas-from-XIV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. The test is quite nice, covers a good chunk of functionality. I've added a few comments how to make it nicer.

Please also add a changelog entry in doc/changes/12438.md. It would probably also be good to mention the new variable in the documentation, e.g. somewhere here where --root is documented: https://dune.readthedocs.io/en/stable/usage.html#finding-the-root

@sir4ur0n
Copy link
Copy Markdown
Contributor Author

All suggestions have been addressed in abe5286, please review again 🙏

Copy link
Copy Markdown
Collaborator

@Leonidas-from-XIV Leonidas-from-XIV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contribution!

Closes ocaml#12399

Signed-off-by: Julien Debon <julien.debon@routine.co>
Signed-off-by: Julien Debon <julien.debon@routine.co>
@Alizter Alizter merged commit 935e26c into ocaml:main Sep 10, 2025
26 checks passed
@sir4ur0n sir4ur0n deleted the feature/add-root-env-var branch October 30, 2025 17:09
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.

Add support for DUNE_ROOT environment variable

3 participants