-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.bazel
73 lines (66 loc) · 1.54 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@bazel_gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
gazelle_binary(
name = "gazelle_binary",
languages = [
"//language/bzl",
"//language/filegroup",
"//language/go",
"//language/proto",
],
)
# gazelle:prefix github.com/sluongng/ugazelle
gazelle(
name = "gazelle",
gazelle = "gazelle_binary",
)
gazelle(
name = "update-deps",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%ugazelle_deps",
"-build_external=external",
"-prune",
],
command = "update-repos",
gazelle = "gazelle_binary",
)
buildifier(
name = "buildifier",
visibility = ["//visibility:public"],
)
alias(
name = "gobin",
actual = "@go_sdk//:bin/go",
visibility = ["//visibility:public"],
)
filegroup(
name = "all_files",
testonly = True,
srcs = [
".bazelrc",
".bazelversion",
".gitignore",
".user.bazelrc",
"BUILD.bazel",
"README.md",
"WORKSPACE",
"bazel-bin",
"bazel-out",
"bazel-testlogs",
"bazel-ugazelle",
"deps.bzl",
"go.mod",
"go.sum",
"//internal:all_files",
"//language:all_files",
],
visibility = ["//visibility:public"],
)
bzl_library(
name = "deps",
srcs = ["deps.bzl"],
visibility = ["//visibility:public"],
deps = ["@bazel_gazelle//:deps"],
)