-
Notifications
You must be signed in to change notification settings - Fork 122
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
[Bazel CI] Error No repository visible as '@google_bazel_common' from main repository. #387
Comments
@cpovirk Can you please take a look? WORKSPACE will be disabled by default in Bazel 8. See bazelbuild/bazel#23023 |
Looks like we have to transitively migrate our entire dependency chain of bazel repos. |
Indeed, and I would recommend replacing google_bazel_common with rules_jvm_external for fetching java dependencies. Judging from the WORKSPACE file, it should be straight forward. And you can still use repository rules in MODULE.bazel via use_repo_rule |
Is there a replacement for Looks like it should be https://github.com/bazelbuild/rules_android, but that's apparently still experimental and spits out errors unless certain flags are given. |
Correct https://github.com/bazelbuild/rules_android is the Starlark replacement for the native android rules ( But before getting too much deeper into this, are the android rules even needed for flogger? I don't see anything Android in BUILD files: |
Not for flogger per se, but we need to migrate bazel-common before we can migrate flogger, so we need to make sure that bazel-common remains usable for other projects that depend on it. |
I think it's just getting used here: https://github.com/google/bazel-common/blob/9f8175287d46cdd21accb4b504a612b44c0f0564/tools/javadoc/javadoc.bzl#L24 |
But maybe this is also a good opportunity to replace that with the |
Yeah it would be much simpler to cut the dependency on the android rules, if possible |
Once upon a time, I think the Android rules were used by Dagger. Dagger has since inlined bazel-common into their own repo, thus leaving themselves with their own separate future problem :) (@bcorso in case we end up doing anything that is of interest to Dagger) (Here's one use of |
…3.1. Fixes #387. RELNOTES=n/a PiperOrigin-RevId: 681581084
…3.1. Fixes #387. RELNOTES=n/a PiperOrigin-RevId: 681581084
…3.1. Fixes #387. RELNOTES=n/a PiperOrigin-RevId: 681581084
…3.1. Fixes #387. RELNOTES=n/a PiperOrigin-RevId: 681581084
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4089#0191a183-1b36-4309-90c3-da14321b5668
Platform: Ubuntu
Logs:
Culprit: bazelbuild/bazel@5881c38
Steps:
CC Greenteam @mai93
The text was updated successfully, but these errors were encountered: