forked from cosmology-tech/starship
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
42 lines (37 loc) · 1.07 KB
/
BUILD.bazel
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
32
33
34
35
36
37
38
39
40
41
42
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@bazel_gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary")
# gazelle:prefix github.com/cosmology-tech/starship
# gazelle:proto disable_global
# gazelle:resolve go github.com/cosmology-tech/starship/registry/registry //proto/registry:registry_go_proto
# gazelle:resolve go github.com/cosmology-tech/starship/exposer/exposer //proto/exposer:exposer_go_proto
# gazelle:exclude registry/registry
# gazelle:exclude exposer/exposer
gazelle(
name = "gazelle",
gazelle = ":gazelle_bin",
)
gazelle_binary(
name = "gazelle_bin",
languages = DEFAULT_LANGUAGES + [
"@bazel_skylib_gazelle_plugin//bzl",
],
)
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.work",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
],
command = "update-repos",
)
exports_files([
"proto/buf.yaml",
"go.work",
])
bzl_library(
name = "deps",
srcs = ["deps.bzl"],
visibility = ["//visibility:public"],
deps = ["@bazel_gazelle//:deps"],
)