Skip to content

Conversation

@sluongng
Copy link
Contributor

When this flag is enabled and a valid remote downloader was setup, Bazel
will attempt to download bzlmod data through the remote downloader grpc
endpoint.

The canonical ID of the download will be the original url of the bzlmod
data to help the remote downloader implement cache policy accordingly.

When this flag is enabled and a valid remote downloader was setup, Bazel
will attempt to download bzlmod data through the remote downloader grpc
endpoint.

The canonical ID of the download will be the original url of the bzlmod
data to help the remote downloader implement cache policy accordingly.
@sluongng sluongng requested a review from a team as a code owner January 26, 2026 14:37
@github-actions github-actions bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Jan 26, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces an experimental flag, --experimental_remote_downloader_bzlmod, to enable the use of a remote downloader for bzlmod registry file downloads. The changes correctly integrate this new option into the DownloadManager, allowing it to conditionally use a remote downloader or fall back to the existing HTTP downloader. Dedicated temporary directories are created for bzlmod downloads, and proper cleanup is attempted. The new functionality is well-covered by unit tests, ensuring that the remote downloader is used when enabled and the HTTP downloader is used otherwise. The code is clean and follows good practices for error handling and resource management.

@sluongng
Copy link
Contributor Author

possibly duplicated/obsoleted by #28433 of @fmeum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant