-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[bazel] update .bazelversion to 8.0.0 #119425
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
Hmm...even with this change, I'm observing:
|
yea for this we need to add |
$ bazel query @llvm-project//libc/... --enable_workspace
ERROR: Failed to load Starlark extension '@@rules_cc//cc/toolchains:toolchain_config_utils.bzl'.
Cycle in the workspace file detected. This indicates that a repository is used prior to being defined.
The following chain of repository dependencies lead to the missing definition.
- @@rules_cc
This could either mean you have to add the '@@rules_cc' repository with a statement like `http_archive` in your WORKSPACE file (note that transitive dependencies are not added automatically), or move an existing definition earlier in your WORKSPACE file.
ERROR: Error computing the main repository mapping: cycles detected during computation of main repo mapping |
yea looks like we have to add that to the WORKSPACE now |
diff --git a/utils/bazel/WORKSPACE b/utils/bazel/WORKSPACE
index 66ba1ac1b17e..a3b8be7814d4 100644
--- a/utils/bazel/WORKSPACE
+++ b/utils/bazel/WORKSPACE
@@ -4,6 +4,7 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
+load("@rules_cc//cc:defs.bzl", "http_archive")
SKYLIB_VERSION = "1.3.0"
didn't seem to work |
you have to pull in that repo as shown here https://github.com/bazelbuild/rules_cc/releases/tag/0.0.17 |
That first warning seems fine, since we have #55924. Not sure yet about the rest. |
i think we should try updating rules_python to fix |
https://github.com/bazelbuild/rules_python/releases/tag/1.0.0 yep that does it! |
we should probably try to fix bazel CI before landing so we can differentiate issues |
Working on that, too. 😉 |
Where is this bazel CI? |
Fixes: ERROR: The project you're trying to build requires Bazel 7.3.0 (specified in llvm-project/utils/bazel/.bazelversion), but it wasn't found in /usr/bin. You can install the required Bazel version via apt: sudo apt update && sudo apt install bazel-7.3.0 If this doesn't work, check Bazel's installation instructions for help: https://bazel.build/install/ubuntu Link: https://blog.bazel.build/2024/12/09/bazel-8-release.html
e51d467
to
c0e8b55
Compare
I'm prepping a fix for the LLDB one |
Once #119457 is green, I'll merge this? |
It's green. merging |
looks like there's some build failures now: https://buildkite.com/llvm-project/upstream-bazel/builds/119358#0193b266-65c9-4ee4-8d53-5fde26020ff7 |
I think is the relevant error? |
cc @GMNGeoffrey |
so I think anything running |
I suspect that "external" is no longer being added to a path somewhere... |
I bisected to bazelbuild/bazel@52105e3, it's a known issue that we rely on this, we just need to flip it back for now: #119462 |
Fixes:
Link: https://blog.bazel.build/2024/12/09/bazel-8-release.html