Move disable downloads to bazelrc from mixed build

Keeps mixed builds and b consistent.

Bug: 275724420
Test: presubmits, especially bp2build-incremental
Change-Id: I89942111f259bf9a88c27e124adbdb73936c514c
This commit is contained in:
Jingwen Chen 2023-03-30 13:19:29 +00:00 committed by Liz Kammer
parent 3ab52714e0
commit 379221f086

View file

@ -29,6 +29,7 @@ import (
"android/soong/bazel/cquery"
"android/soong/shared"
"android/soong/starlark_fmt"
"github.com/google/blueprint"
"github.com/google/blueprint/metrics"
@ -700,9 +701,6 @@ func (context *mixedBuildBazelContext) createBazelCommand(config Config, runName
// We don't need to set --host_platforms because it's set in bazelrc files
// that the bazel shell script wrapper passes
// Explicitly disable downloading rules (such as canonical C++ and Java rules) from the network.
"--experimental_repository_disable_download",
// Suppress noise
"--ui_event_filters=-INFO",
"--noshow_progress",