You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whilst writing code for #2657 I noticed that the toolchain matching is acting weirdly when using X.Y format in the python_version field. I noticed that when I write 3.12, the first toolchain gets matched instead of the entry in MINOR_MAPPING.
The fix would be to change the ordering in the toolchain repo to first list the versions in the MINOR_MAPPING before listing the rest of the toolchains.
The text was updated successfully, but these errors were encountered:
aignas
added a commit
to aignas/rules_python
that referenced
this issue
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.
Fixesbazel-contrib#2685
aignas
added a commit
to aignas/rules_python
that referenced
this issue
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.
Fixesbazel-contrib#2685
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
Whilst writing code for #2657 I noticed that the toolchain matching is acting weirdly when using
X.Y
format in thepython_version
field. I noticed that when I write3.12
, the first toolchain gets matched instead of the entry inMINOR_MAPPING
.The fix would be to change the ordering in the toolchain repo to first list the versions in the
MINOR_MAPPING
before listing the rest of the toolchains.The text was updated successfully, but these errors were encountered: