-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBUILD.bazel
More file actions
42 lines (37 loc) · 1.12 KB
/
BUILD.bazel
File metadata and controls
42 lines (37 loc) · 1.12 KB
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
# gazelle:exclude .git/
# gazelle:exclude pkg/
# gazelle:exclude python/
# gazelle:exclude build/
# gazelle:exclude tools/
# gazelle:exclude proto-go/
# gazelle:exclude javascript/node_modules/
# gazelle:proto default
# gazelle:go_naming_convention go_default_library
# gazelle:go_naming_convention_external go_default_library
# gazelle:prefix github.com/michelangelo-ai/michelangelo
load("@bazel_gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary")
load("@io_bazel_rules_go//go:def.bzl", "TOOLS_NOGO", "nogo")
load("@rules_python_gazelle_plugin//:def.bzl", "GAZELLE_PYTHON_RUNTIME_DEPS")
gazelle_binary(
name = "gazelle_bin",
languages = DEFAULT_LANGUAGES + ["@rules_python_gazelle_plugin//python"],
)
gazelle(
name = "gazelle",
data = GAZELLE_PYTHON_RUNTIME_DEPS,
gazelle = ":gazelle_bin",
)
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go/go.mod",
"-to_macro=third_party/automatic_repos.bzl%go_repositories",
"-prune",
],
command = "update-repos",
)
nogo(
name = "default_nogo",
visibility = ["//visibility:public"],
deps = TOOLS_NOGO,
)