Skip to content

Portable lockdirs respects custom solver_env #11933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gridbugs
Copy link
Collaborator

Previously when using portable lockdirs, custom solver variables set in the "solver_env" field of the "lock_dir" stanza in dune-workspace would be ignored. After this change the custom variables are added to the solver env, though they are overriden by settings from the "solve_for_platforms" field.

@gridbugs gridbugs force-pushed the custom-solver-env-in-portable-lockdir branch from 26566d2 to bf53a60 Compare June 21, 2025 06:16
Copy link
Collaborator

@ElectreAAS ElectreAAS left a comment

Choose a reason for hiding this comment

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

Aside from my asinine comment about parentheses, this is good to go!
Thanks :)

> (repositories mock)
> (solver_env
> (sys-ocaml-version 5.4.0+solver-env-version-override)
> ))
Copy link
Collaborator

Choose a reason for hiding this comment

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

> ))

😠 ❗

@gridbugs gridbugs force-pushed the custom-solver-env-in-portable-lockdir branch from bf53a60 to ad79dce Compare June 25, 2025 16:14
gridbugs added 2 commits June 25, 2025 18:14
This prevents the current system's ocaml version from leaking into the
output of tests, and allows testing situations where sys-ocaml-version
is overriden in a custom solver environment.

Signed-off-by: Stephen Sherratt <[email protected]>
Previously when using portable lockdirs, custom solver variables set in
the "solver_env" field of the "lock_dir" stanza in dune-workspace would
be ignored. After this change the custom variables are added to the
solver env, though they are overriden by settings from the
"solve_for_platforms" field.

Signed-off-by: Stephen Sherratt <[email protected]>
@gridbugs gridbugs force-pushed the custom-solver-env-in-portable-lockdir branch from ad79dce to 5eba766 Compare June 25, 2025 16: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.

2 participants