-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathworkspace_deps.bzl
31 lines (27 loc) · 1.01 KB
/
workspace_deps.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def _maybe(repo_rule, name, **kwargs):
if name not in native.existing_rules():
repo_rule(name = name, **kwargs)
def workspace_deps():
io_bazel_rules_go() # via bazel_gazelle
bazel_gazelle() # via <TOP>
def io_bazel_rules_go():
_maybe(
http_archive,
name = "io_bazel_rules_go",
sha256 = "38171ce619b2695fa095427815d52c2a115c716b15f4cd0525a88c376113f584",
strip_prefix = "rules_go-0.28.0",
urls = [
"https://github.com/bazelbuild/rules_go/archive/v0.28.0.tar.gz",
],
)
def bazel_gazelle():
_maybe(
http_archive,
name = "bazel_gazelle",
sha256 = "7359a9a7071dff5343a52626fce1aae2a78936d3004ef89d038daaefd3fd6608",
strip_prefix = "bazel-gazelle-e4496b956eb46bdf8c9bf95b8d1d85e3a086c4be",
urls = [
"https://github.com/bazelbuild/bazel-gazelle/archive/e4496b956eb46bdf8c9bf95b8d1d85e3a086c4be.tar.gz",
],
)