-
Notifications
You must be signed in to change notification settings - Fork 807
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
[experiment] Migrate to bzlmod #24216
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2e61bc2
to
936f9e5
Compare
55bb362
to
2caa217
Compare
Previously we were on a very old commit (not a release) from 2020. Signed-off-by: James Wainwright <[email protected]>
We use this in OpenTitan so we should explicitly depend on it. Signed-off-by: James Wainwright <[email protected]>
There is a complicated dependency cycle here if we don't separate them. Signed-off-by: James Wainwright <[email protected]>
These dependencies are mostly important toolchain rules: * `rules_python` * `rules_cc` * `rules_foreign_cc` We need to load these right at the start of `WORKSPACE` to avoid our other dependencies (e.g. CRT) from installing different versions first. Bazel will stick with the first version installed even if we explicitly ask for another later. Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Our patch has been upstreamed here: bazelbuild/buildtools@762712d Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
We were previously taking these from the Bazel repository at the version we were using. This has broken, but Bazel has a documented way of doing this now independent of version: https://bazel.build/run/build#repository_cache_with_bazel_7_or_later Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Drops the `system_includes` feature of `bindgen_toolchain`. Need to check for breakages. Signed-off-by: James Wainwright <[email protected]>
This change has been upstreamed, just waiting for it to merge. Signed-off-by: James Wainwright <[email protected]>
`rules_rust` has changed the layout of the Bazel files it outputs when repinning dependencies. The actual dependencies have not changed. Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Signed-off-by: James Wainwright <[email protected]>
Everything experimented on here has been merged! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Expecting tonnes of failures here but wanted to see what breaks in CI while it's quiet. I know of a few breakages already around airgapped builds, the bitstream cache, and the C toolchain.
This will be broken into a few PRs later, but it includes:
rules_rust
).rules_python
).WORKSPACE
toMODULE.bazel
.The lowrisc toolchain and closed-source manufacturing hooks are not yet migrated.
Problems found so far by this PR:
rules_python
now refuses to run asroot
, we may need to use rootless containers in CI.ignore_root_user_error = True
param which disables.pyc
caching.serde_annotate_derive
for some reason. This was working before I rebased so I must have broken something.rules_rust
regression Dependency vendoring broken in 0.49.1 bazelbuild/rules_rust#2777.jsonschema
dependency optional.