The current situation, motivation for this task
Bazel download and builds basic artifacts like protocol buffer compiler and base protobuf .proto (like any.proto)
from Internet during bootstrapping. This process is very slow for users in mainland China.
Describe alternatives considered
Maybe swap out the dependent artifacts through specific command line flags or configs;
Like for protocol buffer compiler, one can specify a different compiler with a command line flag:
https://stackoverflow.com/a/68927426
The current situation, motivation for this task Bazel download and builds basic artifacts like protocol buffer compiler and base protobuf .proto (like any.proto) from Internet during bootstrapping. This process is very slow for users in mainland China.
Describe the solution https://blog.aspect.dev/configuring-bazels-downloader Seems the right direction
Describe alternatives considered Maybe swap out the dependent artifacts through specific command line flags or configs; Like for protocol buffer compiler, one can specify a different compiler with a command line flag: https://stackoverflow.com/a/68927426
Additional context None