From d429c68e8e1ea44ffb3e2a35e4fd7da11f46c9c2 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Fri, 22 Mar 2019 16:51:51 -0400 Subject: [PATCH] Use cacheable http_archive with sha256 for io_bazel as its a very large download (#624) --- package.bzl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/package.bzl b/package.bzl index f1dc7e5134..8e16652c1d 100644 --- a/package.bzl +++ b/package.bzl @@ -17,7 +17,6 @@ Fulfills similar role as the package.json file. """ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def rules_nodejs_dependencies(): @@ -44,10 +43,13 @@ def rules_nodejs_dev_dependencies(): ) # Needed for stardoc - git_repository( + # TODO(gregmagolan): switch to https://github.com/bazelbuild/bazel/archive/0.23.x.tar.gz when + # the commit pulled here makes it into a release + http_archive( name = "io_bazel", - commit = "1488f91fec238adacbd0517fcee15d8ec0599b8d", - remote = "https://github.com/bazelbuild/bazel.git", + url = "https://github.com/bazelbuild/bazel/archive/1488f91fec238adacbd0517fcee15d8ec0599b8d.zip", + sha256 = "f0dba27ac4e5145de7fc727229fe87f01399a1ef3c5225dc9b8c7e77156d91af", + strip_prefix = "bazel-1488f91fec238adacbd0517fcee15d8ec0599b8d", ) http_archive(