Skip to content

refactor: make bzlmod pass platform mapping to host repo creation - #2889

Merged
rickeylev merged 12 commits into
bazel-contrib:mainfrom
rickeylev:refactor.bzlmod.pass.platforms.to.host.repo
May 19, 2025
Merged

refactor: make bzlmod pass platform mapping to host repo creation#2889
rickeylev merged 12 commits into
bazel-contrib:mainfrom
rickeylev:refactor.bzlmod.pass.platforms.to.host.repo

Conversation

@rickeylev

@rickeylev rickeylev commented May 16, 2025

Copy link
Copy Markdown
Collaborator

This makes bzlmod pass the platform metadata to the host_toolchain rule instead of
the host toolchain rule using the fixed PLATFORMS global.

This allows the bzlmod extension to modify the platforms that are available, where the
fixed PLATFORM global can't be changed.

Work towards #2081

@rickeylev
rickeylev requested a review from aignas as a code owner May 16, 2025 22:25
@rickeylev
rickeylev force-pushed the refactor.bzlmod.pass.platforms.to.host.repo branch from 2d4fd4a to ce3027c Compare May 17, 2025 18:16
Comment thread python/private/toolchains_repo.bzl Outdated
@rickeylev
rickeylev enabled auto-merge May 19, 2025 21:21
@rickeylev
rickeylev added this pull request to the merge queue May 19, 2025
Merged via the queue into bazel-contrib:main with commit a746b8f May 19, 2025
@rickeylev
rickeylev deleted the refactor.bzlmod.pass.platforms.to.host.repo branch May 19, 2025 21:40
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