From 357bf2d04daf5ed7d983afc6e814c713a9047570 Mon Sep 17 00:00:00 2001 From: Ryo Aoyama Date: Fri, 10 Apr 2026 03:00:20 +0900 Subject: [PATCH] Fix remote_download_regex matching all files unconditionally The regex pattern `.*|.*\.(ext1|ext2|...)$` matches everything because `.*` before `|` is an unbounded wildcard with no anchor. This makes the extension filter useless, causing all remote cache outputs to be downloaded. Remove the `.*|` so only files with the listed extensions (plus indexstores when enabled) are downloaded. Signed-off-by: Ryo Aoyama --- .../generate_index_build_bazel_dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcodeproj/internal/bazel_integration_files/generate_index_build_bazel_dependencies.sh b/xcodeproj/internal/bazel_integration_files/generate_index_build_bazel_dependencies.sh index 4c67d3d4e..39ada52cc 100755 --- a/xcodeproj/internal/bazel_integration_files/generate_index_build_bazel_dependencies.sh +++ b/xcodeproj/internal/bazel_integration_files/generate_index_build_bazel_dependencies.sh @@ -56,7 +56,7 @@ readonly build_pre_config_flags=( # This is brittle. If different file extensions are used for compilation # inputs, they will need to be added to this list. Ideally we can stop doing # this once Bazel adds support for a Remote Output Service. - "--remote_download_regex=${indexstores_regex}.*|.*\.(cfg|c|C|cc|cl|cpp|cu|cxx|c++|def|h|H|hh|hpp|hxx|h++|hmap|ilc|inc|inl|ipp|tcc|tlh|tli|tpp|m|modulemap|mm|pch|swift|swiftdoc|swiftmodule|swiftsourceinfo|yaml)$" + "--remote_download_regex=${indexstores_regex}.*\.(cfg|c|C|cc|cl|cpp|cu|cxx|c++|def|h|H|hh|hpp|hxx|h++|hmap|ilc|inc|inl|ipp|tcc|tlh|tli|tpp|m|modulemap|mm|pch|swift|swiftdoc|swiftmodule|swiftsourceinfo|yaml)$" ) source "$BAZEL_INTEGRATION_DIR/bazel_build.sh"