diff --git a/repositories/http_archive_deps/README.md b/repositories/http_archive_deps/README.md index 82ddfe941..0d9d6bd87 100644 --- a/repositories/http_archive_deps/README.md +++ b/repositories/http_archive_deps/README.md @@ -23,7 +23,7 @@ Example output: ``` # ⚠️ bazelbuild-bazel-skylib-1.0.3.tar.gz is not uploaded yet. Upload with: -gsutil cp -n -a public-read /usr/local/google/home/aaronyu/.cache/bazel/_bazel_aaronyu/cache/repos/v1/content_addressable/sha256/1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c/file gs://chromeos-localmirror/distfiles/bazelbuild-bazel-skylib-1.0.3.tar.gz +gcloud storage cp --no-clobber --predefined-acl=publicRead /usr/local/google/home/aaronyu/.cache/bazel/_bazel_aaronyu/cache/repos/v1/content_addressable/sha256/1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c/file gs://chromeos-localmirror/distfiles/bazelbuild-bazel-skylib-1.0.3.tar.gz # ✅ google-benchmark-v1.5.5.tar.gz already exist at: https://storage.googleapis.com/chromeos-localmirror/distfiles/google-benchmark-v1.5.5.tar.gz ``` diff --git a/repositories/http_archive_deps/check_mirror.py b/repositories/http_archive_deps/check_mirror.py index 1491b9b08..fb085ca9b 100644 --- a/repositories/http_archive_deps/check_mirror.py +++ b/repositories/http_archive_deps/check_mirror.py @@ -77,11 +77,11 @@ def main(deps_sha256_json, json_bazel_external_uris_exclude): print( shlex.join( [ - 'gsutil', + 'gcloud', + 'storage', 'cp', - '-n', - '-a', - 'public-read', + '--no-clobber', + '--predefined-acl=publicRead', cached_download_file, 'gs://chromeos-localmirror/distfiles/' + canonical_name, ]