From b87779661bf8c29365035e2cf37fc238fff09654 Mon Sep 17 00:00:00 2001 From: jdalton Date: Tue, 24 Nov 2026 21:54:45 -0500 Subject: [PATCH] test(cli): fall back to alternate Maven Central --- .github/workflows/ci.yml | 2 +- test/fixtures/manifest-bazel/native/bzlmod/MODULE.bazel | 5 ++++- test/fixtures/manifest-bazel/native/workspace/WORKSPACE | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77863b8a45..f3fa105f0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -334,7 +334,7 @@ jobs: shell: pwsh env: SOCKET_BAZEL_E2E: '1' - SFW_CUSTOM_REGISTRIES: 'bypass:bcr.bazel.build,bypass:release-assets.githubusercontent.com,bypass:repo.maven.apache.org' + SFW_CUSTOM_REGISTRIES: 'bypass:bcr.bazel.build,bypass:release-assets.githubusercontent.com,bypass:repo.maven.apache.org,bypass:repo1.maven.org' run: | $PSNativeCommandUseErrorActionPreference = $true pnpm exec vitest run --config .config/vitest.e2e.config.mts src/commands/manifest/bazel/bazel-native.e2e.test.mts diff --git a/test/fixtures/manifest-bazel/native/bzlmod/MODULE.bazel b/test/fixtures/manifest-bazel/native/bzlmod/MODULE.bazel index 9dcb4acad5..540f494f28 100644 --- a/test/fixtures/manifest-bazel/native/bzlmod/MODULE.bazel +++ b/test/fixtures/manifest-bazel/native/bzlmod/MODULE.bazel @@ -6,6 +6,9 @@ maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") maven.install( name = "socket_fixture", artifacts = ["junit:junit:4.13.2"], - repositories = ["https://repo.maven.apache.org/maven2"], + repositories = [ + "https://repo.maven.apache.org/maven2", + "https://repo1.maven.org/maven2", + ], ) use_repo(maven, "socket_fixture") diff --git a/test/fixtures/manifest-bazel/native/workspace/WORKSPACE b/test/fixtures/manifest-bazel/native/workspace/WORKSPACE index 67809b8c41..7d93842cf1 100644 --- a/test/fixtures/manifest-bazel/native/workspace/WORKSPACE +++ b/test/fixtures/manifest-bazel/native/workspace/WORKSPACE @@ -33,5 +33,8 @@ load("@rules_jvm_external//:defs.bzl", "maven_install") maven_install( name = "maven", artifacts = ["junit:junit:4.13.2"], - repositories = ["https://repo.maven.apache.org/maven2"], + repositories = [ + "https://repo.maven.apache.org/maven2", + "https://repo1.maven.org/maven2", + ], )