-
-
Notifications
You must be signed in to change notification settings - Fork 594
refactor: explicitly define host platform ordering #2890
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
refactor: explicitly define host platform ordering #2890
Conversation
e283fc0
to
b31a9a4
Compare
b31a9a4
to
f88fc59
Compare
…d.pass.platforms.to.host.repo
Co-authored-by: Ignas Anikevicius <[email protected]>
…into refactor.bzlmod.pass.platforms.to.host.repo
…into refactor.bzlmod.pass.platforms.to.host.repo
…tor.well.defined.host.platform.ordering
…into refactor.well.defined.host.platform.ordering
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.
Ready for PTAL: Dependent PR merged
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.
ptal
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.
LGTM, thank you!
It turns out the
unsorted-dict-items
disable in versions.bzl is load-bearing: theprecedence of what host-compatible runtime is selected depends on the order of keys.
Hence, the keys are carefully defined such that freethreaded and musl come after the
regular runtimes.
Make this subtle and implicit behavior explicit by having an ordering function that
sorts keys in the order we want.
Work towards #2081