Skip to content

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
"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