Closed
Conversation
This commit fixes the macOS Bazel build failures in Kokoro by: 1. Disabling the experimental downloader config in .bazelrc. The build was attempting to download dependencies from an outdated mirror, which resulted in 404 errors. 2. Re-enabling the default Apple C++ toolchain. The build was explicitly disabling the default toolchain without providing an alternative, which caused toolchain resolution errors. The original reason for disabling the toolchain, a gRPC incompatibility with Bazel 7 (as documented in #13311), is no longer relevant as the project now uses a version of gRPC that is compatible with Bazel 7.
This commit removes the dependency on from . This dependency is very old and is incompatible with modern Bazel's C++ toolchain resolution, especially when using bzlmod. Removing this dependency allows Bazel to use its built-in toolchain configuration, which should fix the toolchain resolution errors on macOS. This change is part of the effort to get the macOS Kokoro CI builds working.
This commit updates the capture_build_info.bzl file to load its dependencies from @bazel_tools instead of the outdated @rules_cc repository. This change is necessary after removing the @rules_cc dependency from MODULE.bazel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change is