Skip to content

Commit

Permalink
Suggestion: Use http_archive instead of git_repository
Browse files Browse the repository at this point in the history
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 :)
  • Loading branch information
luna-duclos authored Sep 8, 2020
1 parent d7f5412 commit 683a942
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
```

Expand Down

0 comments on commit 683a942

Please sign in to comment.