File tree 4 files changed +12
-0
lines changed
java/com/google/devtools/build/lib/blackbox/bazel 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ public void setup(BlackBoxTestContext context) throws IOException {
78
78
String sharedRepoCache = System .getenv ("REPOSITORY_CACHE" );
79
79
if (sharedRepoCache != null ) {
80
80
lines .add ("common --repository_cache=" + sharedRepoCache );
81
+ // TODO(sluongng): Remove this flag once all dependencies are mirrored.
82
+ // See https://github.com/bazelbuild/bazel/pull/19549 for more context.
83
+ lines .add ("common --norepository_cache_urls_as_default_canonical_id" );
81
84
if (OS .getCurrent () == OS .DARWIN ) {
82
85
// For reducing SSD usage on our physical Mac machines.
83
86
lines .add ("common --experimental_repository_cache_hardlinks" );
Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ def setUp(self):
127
127
shared_repo_cache = os .environ .get ('REPOSITORY_CACHE' )
128
128
if shared_repo_cache :
129
129
f .write ('common --repository_cache={}\n ' .format (shared_repo_cache ))
130
+ # TODO(sluongng): Remove this flag once all dependencies are mirrored.
131
+ # See https://github.com/bazelbuild/bazel/pull/19549 for more context.
132
+ f .write ('common --norepository_cache_urls_as_default_canonical_id\n ' )
130
133
if TestBase .IsDarwin ():
131
134
# For reducing SSD usage on our physical Mac machines.
132
135
f .write ('common --experimental_repository_cache_hardlinks\n ' )
Original file line number Diff line number Diff line change @@ -102,10 +102,13 @@ function test_bootstrap() {
102
102
103
103
JAVABASE=$( echo reduced* )
104
104
105
+ # TODO: remove `norepository_cache_urls_as_default_canonical_id` once all dependencies are mirrored.
106
+ # See https://github.com/bazelbuild/bazel/pull/19549 for more context.
105
107
env EXTRA_BAZEL_ARGS=" --tool_java_runtime_version=local_jdk" ./compile.sh \
106
108
|| fail " Expected to be able to bootstrap bazel"
107
109
./output/bazel \
108
110
--server_javabase=$JAVABASE --host_jvm_args=--add-opens=java.base/java.nio=ALL-UNNAMED \
111
+ --norepository_cache_urls_as_default_canonical_id \
109
112
version --nognu_format & > " ${TEST_log} " \
110
113
|| fail " Generated bazel not working"
111
114
expect_log " ${SOURCE_DATE_EPOCH} "
Original file line number Diff line number Diff line change 324
324
if [[ -n ${REPOSITORY_CACHE:- } ]]; then
325
325
echo " testenv.sh: Using repository cache at $REPOSITORY_CACHE ."
326
326
echo " common --repository_cache=$REPOSITORY_CACHE " >> $TEST_TMPDIR /bazelrc
327
+ # TODO(sluongng): Remove this flag once all dependencies are mirrored.
328
+ # See https://github.com/bazelbuild/bazel/pull/19549 for more context.
329
+ echo " common --norepository_cache_urls_as_default_canonical_id" >> $TEST_TMPDIR /bazelrc
327
330
if is_darwin; then
328
331
# For reducing SSD usage on our physical Mac machines.
329
332
echo " testenv.sh: Enabling --experimental_repository_cache_hardlinks"
You can’t perform that action at this time.
0 commit comments