Skip to content

Bzlmod part 3 - #2

Closed
jjudd wants to merge 18 commits into
cburchert:bzlmodfrom
lucidsoftware:bzlmod-part-3
Closed

jjudd wants to merge 18 commits into
cburchert:bzlmodfrom
lucidsoftware:bzlmod-part-3

Conversation

@jjudd

@jjudd jjudd commented Apr 4, 2025

Copy link
Copy Markdown

This branch is rebased on origin's main branch and builds are all passing.

It may be more convenient for you to rebase your branch on main and then cherry-pick the last 4 commits on this branch to your branch.

cburchert and others added 18 commits April 2, 2025 18:21
The old one was some ancient version that didn't support bzlmod and is
past its end of support (https://bazel.build/release#support-matrix). It
didn't support bzlmod, so we have to update. The new version is the same
version we use for Linux.
For some reason installing Bazel directly uses an ancient version.
This is confusing, because there are just cryptic errors about missing
files when the actual problem is that the platform isn't detected
correctly or unsupported.
By using toolchains and exec_compatbile_with we can use the correct
toolchain for the execution platform.

select was not operating on the exec platform, which meant that files
weren't getting to the right places with bzlmod + Bazel 8.

Toolchains are set up for all platforms that were previously supported.
If you attempt to use a version of Emscripten that doesn't have an arm64
Linux build to build wasm on that platform, then it will error as it did
previously.
…h_override

This way people won't need to check out the repo in order to use the
module.
This upgrades to rules_python 1.3.0, which makes downgrades the "running
as root" error to a warning by default by setting ignore_root_user_error
= True as the default.
@cburchert

Copy link
Copy Markdown
Owner

Awesome! I merged by cherry-pick as suggested :)

@cburchert cburchert closed this Apr 4, 2025
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