Skip to content

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

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

Conversation

rickeylev
Copy link
Collaborator

@rickeylev rickeylev commented May 16, 2025

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
@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
3 checks passed
@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