-
Notifications
You must be signed in to change notification settings - Fork 455
Include non-platform-specific solver vars in portable lockdirs #12678
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
Include non-platform-specific solver vars in portable lockdirs #12678
Conversation
a124243 to
d85eae5
Compare
|
A general comment that is related to this PR but isn't necessarily directly applicable: the code base needs to move away from distinguishing portable from non portable lock directories. What I mean by that is:
Given those, the current definitions are just:
In practice, I think this means that we should not be having flags as |
|
Oops didn't mean to close this! |
src/dune_pkg/lock_dir.mli
Outdated
| -> repos:Opam_repo.t list option | ||
| -> expanded_solver_variable_bindings:Solver_stats.Expanded_variable_bindings.t | ||
| -> solved_for_platform:Solver_env.t option | ||
| (* TODO: make this non-optional when portable lockdirs becomes the default *) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| (* TODO: make this non-optional when portable lockdirs becomes the default *) | |
| (* TODO: make this ^^^ non-optional when portable lockdirs becomes the default *) |
otherwise the comment is a bit confusing
Previously all expanded solver variables were omitted from lockdirs, as some solver variables are specific to the platform being solved for. This was too strict, and meant that non-platform-specific solver variables like "with-doc" were incorrectly omitted. This change adds non-platform-specific expanded solver variables to portable lockdirs. Signed-off-by: Stephen Sherratt <[email protected]>
d85eae5 to
6d24064
Compare
…#12678) Previously all expanded solver variables were omitted from lockdirs, as some solver variables are specific to the platform being solved for. This was too strict, and meant that non-platform-specific solver variables like "with-doc" were incorrectly omitted. This change adds non-platform-specific expanded solver variables to portable lockdirs. Signed-off-by: Stephen Sherratt <[email protected]>
Previously all expanded solver variables were omitted from lockdirs, as some solver variables are specific to the platform being solved for. This was too strict, and meant that non-platform-specific solver variables like "with-doc" were incorrectly omitted. This change adds non-platform-specific expanded solver variables to portable lockdirs.