Skip to content

Commit 1a30e70

Browse files
imjasonhalexeagle
authored andcommitted
Fetch go_repositories using importpath, sum, and version
...except for go-containerregistry, which vendors its deps and so doesn't seem to work with go_repository with sum+version. Instead, fetch that dependency using a GitHub archive.
1 parent 8e5198f commit 1a30e70

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

repositories/go_repositories.bzl

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,32 +49,28 @@ def go_deps():
4949
if "com_github_pkg_errors" not in excludes:
5050
go_repository(
5151
name = "com_github_pkg_errors",
52-
urls = ["https://github.com/pkg/errors/archive/v0.9.1.tar.gz"],
53-
sha256 = "56bfd893023daa498508bfe161de1be83299fcf15376035e7df79cbd7d6fa608",
5452
importpath = "github.com/pkg/errors",
55-
strip_prefix = "errors-0.9.1",
53+
sum = "h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=",
54+
version = "v0.9.1",
5655
)
5756
if "in_gopkg_yaml_v2" not in excludes:
5857
go_repository(
5958
name = "in_gopkg_yaml_v2",
60-
urls = ["https://github.com/go-yaml/yaml/archive/v2.2.8.tar.gz"],
61-
sha256 = "9632d0760e9a07c414f2b2b6cd453d6225e42ecea77906883b23f1f1d0546045",
6259
importpath = "gopkg.in/yaml.v2",
63-
strip_prefix = "yaml-2.2.8",
60+
sum = "h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=",
61+
version = "v2.2.8",
6462
)
6563
if "com_github_kylelemons_godebug" not in excludes:
6664
go_repository(
6765
name = "com_github_kylelemons_godebug",
68-
urls = ["https://github.com/kylelemons/godebug/archive/v1.1.0.tar.gz"],
69-
sha256 = "72cc6f274fbd165b7674280f836a6b400e80dbae055919e101920dedf50e79db",
7066
importpath = "github.com/kylelemons/godebug",
71-
strip_prefix = "godebug-1.1.0",
67+
sum = "h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=",
68+
version = "v1.1.0",
7269
)
7370
if "com_github_ghodss_yaml" not in excludes:
7471
go_repository(
7572
name = "com_github_ghodss_yaml",
76-
urls = ["https://github.com/ghodss/yaml/archive/v1.0.0.tar.gz"],
77-
sha256 = "8a76b47cd171944612aae1cfa08bbb971b63fec16794c839252808392097de44",
7873
importpath = "github.com/ghodss/yaml",
79-
strip_prefix = "yaml-1.0.0",
74+
sum = "h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=",
75+
version = "v1.0.0",
8076
)

0 commit comments

Comments
 (0)