-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
39 lines (34 loc) · 1.02 KB
/
Copy pathBUILD.bazel
File metadata and controls
39 lines (34 loc) · 1.02 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
load("@gazelle//:def.bzl", "gazelle")
load("@rules_go//go:def.bzl", "TOOLS_NOGO", "go_library", "nogo")
# このprefixには、このリポジトリ自体のパスを指定する
# gazelle:prefix github.com/pddg/go-bazel-playground
# gazelle:exclude _empty.go
# gazelle:proto file
# gazelle:go_grpc_compilers @rules_go//proto:go_grpc
# gazelle:go_proto_compilers @rules_go//proto:go_proto
gazelle(name = "gazelle")
gazelle(
name = "update-go-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_repos",
"-bzlmod",
"-prune",
],
command = "update-repos",
)
nogo(
name = "my_nogo",
visibility = ["//visibility:public"],
deps = TOOLS_NOGO + [
"//analyzers/sample",
"@com_github_gostaticanalysis_nilerr//:nilerr",
],
)
go_library(
name = "go-bazel-playground",
srcs = ["tools.go"],
importpath = "github.com/pddg/go-bazel-playground",
visibility = ["//visibility:private"],
deps = ["@com_github_gostaticanalysis_nilerr//:nilerr"],
)