From 6a00ee05ff4a2e0bff3f6bcbc469959d10a80740 Mon Sep 17 00:00:00 2001 From: Leandro Lovisolo Date: Fri, 3 Jun 2022 00:32:08 +0000 Subject: [PATCH] [gcs_mirror] Add support for URLs ending with ".tgz". This was necessary to mirror https://binaries.cockroachdb.com/cockroach-v21.1.9.linux-amd64.tgz in https://skia-review.googlesource.com/c/buildbot/+/546543. Bug: skia:13293 Change-Id: Ib6d5db6864bd82f51321a44d5f15410d37d92ff7 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/546541 Auto-Submit: Leandro Lovisolo Commit-Queue: Kevin Lubick Reviewed-by: Kevin Lubick --- bazel/gcs_mirror/gcs_mirror.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/gcs_mirror/gcs_mirror.go b/bazel/gcs_mirror/gcs_mirror.go index c776829473..3579e7ccbe 100644 --- a/bazel/gcs_mirror/gcs_mirror.go +++ b/bazel/gcs_mirror/gcs_mirror.go @@ -137,7 +137,7 @@ func processOne(workDir, url, hash string) error { return skerr.Wrapf(cmd.Run(), "uploading %s to GCS", tmpFile) } -var supportedSuffixes = []string{".tar.gz", ".tar.xz", ".deb", ".zip"} +var supportedSuffixes = []string{".tar.gz", ".tgz", ".tar.xz", ".deb", ".zip"} // getSuffix returns the filetype suffix of the file if it is in the list of supported suffixes. // Otherwise, it returns empty string.