From 683a9422b33271954c88b94228cd0524ef19380f Mon Sep 17 00:00:00 2001 From: Luna Duclos Date: Tue, 8 Sep 2020 15:43:36 +0200 Subject: [PATCH] Suggestion: Use http_archive instead of git_repository This is a tiny PR to use http_archive instead of git_repository, since they are significantly faster as repo size grows and github automatically creates nice archives when a new tag is released anyway :) --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c075191..5dce502 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,11 @@ Follow these instructions strictly. ``` load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") -git_repository( +http_archive( name = "golink", - commit = "v1.0.0", - remote = "https://github.com/nikunjy/golink", + urls = ["https://github.com/nikunjy/golink/archive/v1.0.0.tar.gz"], + sha256 = "ea728cfc9cb6e2ae024e1d5fbff185224592bbd4dad6516f3cc96d5155b69f0d", + strip_prefix = "golink-1.0.0", ) ```