Skip to content

fix(toolchains): correctly order the toolchains #2735

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

Merged
merged 15 commits into from
Apr 5, 2025

Conversation

aignas
Copy link
Collaborator

@aignas aignas commented Apr 4, 2025

Since toolchain matching is done by matching the first target that
matches target settings, the minor_mapping config setting is special,
because e.g. all 3.11.X toolchains match the python_version = "3.11"
setting.

This just reshuffles the list so that we have toolchains that are in the
minor_mapping before the rest.

At the same time remove the workaround from the lock.bzl where the bug
was initially discovered.

Fixes #2685

aignas added 2 commits April 4, 2025 17:23
Since toolchain matching is done by matching the first target that
matches target settings, the `minor_mapping` config setting is special,
because e.g. all `3.11.X` toolchains match the `python_version = "3.11"`
setting.

This just reshuffles the list so that we have toolchains that are in the
`minor_mapping` before the rest.

Fixes bazel-contrib#2685
@aignas aignas requested a review from rickeylev as a code owner April 4, 2025 08:25
@rickeylev rickeylev changed the title fix(python): correctly order the toolchains fix(toolchains): correctly order the toolchains Apr 4, 2025
@aignas aignas enabled auto-merge April 5, 2025 13:10
@aignas aignas added this pull request to the merge queue Apr 5, 2025
Merged via the queue into bazel-contrib:main with commit 3d98aee Apr 5, 2025
3 checks passed
@aignas aignas deleted the fix/toolchain-order branch April 5, 2025 13:26
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.

toolchain resolution may be wrong when python_version does not include a patch version
2 participants