This is an automated email from the ASF dual-hosted git repository.
lizhimins pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new a3abd5185a [ISSUE #10341] Fix Bazel CI build failure caused by Maven
Central rate limiting (#10342)
a3abd5185a is described below
commit a3abd5185a18f9c05a6eaec0a5aa0afb3279bf44
Author: lizhimins <[email protected]>
AuthorDate: Tue May 19 13:34:12 2026 +0800
[ISSUE #10341] Fix Bazel CI build failure caused by Maven Central rate
limiting (#10342)
---
.github/workflows/bazel.yml | 10 +++++++++-
WORKSPACE | 4 ++--
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml
index 510457ca46..4fd8742411 100644
--- a/.github/workflows/bazel.yml
+++ b/.github/workflows/bazel.yml
@@ -16,7 +16,15 @@ jobs:
matrix:
os: [ubuntu-latest]
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
+ - name: Cache Bazel repository
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cache/bazel
+ key: bazel-repo-${{ runner.os }}-${{ hashFiles('WORKSPACE') }}
+ restore-keys: |
+ bazel-repo-${{ runner.os }}-
- name: Build
run: bazel build --config=remote //...
- name: Run Tests
diff --git a/WORKSPACE b/WORKSPACE
index d3a93fffe1..1abb19ea2a 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -115,10 +115,10 @@ maven_install(
"com.alibaba.fastjson2:fastjson2:2.0.59",
"org.junit.jupiter:junit-jupiter-api:5.9.1",
],
- fetch_sources = True,
+ fetch_sources = False,
repositories = [
- # Private repositories are supported through HTTP Basic auth
"https://repo1.maven.org/maven2",
+ "https://repo.maven.apache.org/maven2",
],
)