From 2292a55e385c2c22ee4b0cf2e34fa4f5304b6241 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Mon, 27 Jun 2022 13:46:00 -0400 Subject: [PATCH] [bazel] Fix GCS mirror typo Suffixes already have a . in the beginning. Two dots does not leave us with a valid URL. Change-Id: Ia232d1b68a78450da7883e659fa6871b562db20f Bug: skia:12541 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/553538 Reviewed-by: John Stiles --- toolchain/utils.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/utils.bzl b/toolchain/utils.bzl index 6d71150853..fd7a4b8600 100644 --- a/toolchain/utils.bzl +++ b/toolchain/utils.bzl @@ -36,5 +36,5 @@ def gcs_mirror_url(url, sha256): if extension == "": fail("URL %s has an unsupported suffix." % url) - mirror_url = "%s/%s.%s" % (_GCS_MIRROR_PREFIX, sha256, extension) + mirror_url = "%s/%s%s" % (_GCS_MIRROR_PREFIX, sha256, extension) return [mirror_url] if _TEST_GCS_MIRROR else [url, mirror_url]