Skip to content

Commit

Permalink
Use cacheable http_archive with sha256 for io_bazel as its a very lar…
Browse files Browse the repository at this point in the history
…ge download (#624)
  • Loading branch information
gregmagolan authored Mar 22, 2019
1 parent c254866 commit d429c68
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions package.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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(
Expand Down

0 comments on commit d429c68

Please sign in to comment.