From 664de1337f4d8b6895f238a7c541a2e07d6218f7 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Thu, 26 Jul 2018 19:48:26 +0200 Subject: [PATCH] Speed up downloading of @go_googleapis by using http_archive. (#1603) The googleapis repository seems to be of such a size that it takes a long time to clone on a link with lower bandwidth. So long, in fact, that it causes timeouts in my case. --- go/private/repositories.bzl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/go/private/repositories.bzl b/go/private/repositories.bzl index c880955b14..caed07cbf7 100644 --- a/go/private/repositories.bzl +++ b/go/private/repositories.bzl @@ -143,10 +143,12 @@ def go_rules_dependencies(): # importpath = "google.golang.org/genproto", ) _maybe( - git_repository, + http_archive, name = "go_googleapis", - remote = "https://github.com/googleapis/googleapis", - commit = "6a3277c0656219174ff7c345f31fb20a90b30b97", # master as of 2018-07-01 + # master as of 2018-07-01 + urls = ["https://codeload.github.com/googleapis/googleapis/zip/6a3277c0656219174ff7c345f31fb20a90b30b97"], + strip_prefix = "googleapis-6a3277c0656219174ff7c345f31fb20a90b30b97", + type = "zip", overlay = manifest["go_googleapis"], )