Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: have bzlmod pass platforms to python_register_toolchains #2884

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

Conversation

rickeylev
Copy link
Collaborator

This is to facilitate eventually allowing overrides to add additional platforms.

Instead of the PLATFORMS global being used, the python bzlmod extension passing the
mapping directly to python_register_toolchains, then receives back the subset of
platforms that had repos defined. That subset is then later used when (re)constructing
the list of repo names for the toolchains.

@rickeylev rickeylev requested a review from aignas as a code owner May 16, 2025 17:14
@@ -149,6 +149,7 @@ def _test_default(env):
"base_url",
"ignore_root_user_error",
"tool_versions",
"platforms",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, so this does not expose any extra APIs yet, so hence no extra tests here, LGTM.

@aignas aignas added this pull request to the merge queue May 17, 2025
Merged via the queue into bazel-contrib:main with commit d6af2b7 May 17, 2025
3 checks passed
@rickeylev rickeylev deleted the refactor.bzlmod.decides.platforms branch May 17, 2025 18:14
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.

2 participants