Bazel has the ability to download repositories from the internet if explicitly requested to do so, or by resolving target dependencies when an external repository where to download them from is set.
To avoid surprising behaviours, Kleaf has introduced two build configs to control this access (--config=internet
and --config=no_internet
).
In a near future, --config=no_internet
will be set by default, disabling external downloads, except when using --use_prebuilt_gki
.
Developers will be able to re-enable internet access via --config=internet
, for example:
tools/bazel build //build/kernel/kleaf:docs --config=internet