-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.bazel
57 lines (52 loc) · 1.52 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
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
exports_files(
["buf.yaml"],
visibility = ["//visibility:public"],
)
gazelle_binary(
name = "gazelle-buf",
languages = [
# Loads the native proto extension
"@bazel_gazelle//language/proto:go_default_library",
"@bazel_gazelle//language/go:go_default_library",
# Loads the Buf extension
"@rules_buf//gazelle/buf:buf",
# NOTE: This needs to be loaded after the proto language
],
)
# gazelle:exclude bazel-*
# gazelle:exclude gen
# gazelle:exclude scripts
# gazelle:go_grpc_compilers @com_connectrpc_connect//cmd/protoc-gen-connect-go:protoc-gen-connect-go
## gazelle:go_naming_convention import_alias
# gazelle:go_proto_compilers @rules_go//proto:go_proto
gazelle(
name = "gazelle",
gazelle = ":gazelle-buf",
)
buildifier(
name = "buildifier.check",
exclude_patterns = [
"./bazel-*",
"./git/*",
"./vendor/*",
],
lint_mode = "warn",
lint_warnings = ["all"],
mode = "check",
verbose = True,
)
#go_binary(
# name = "main",
# embed = [":connect-go-example_lib"],
# visibility = ["//visibility:public"],
#)
#
#go_library(
# name = "connect-go-example_lib",
# srcs = ["main.go"],
# importpath = "github.com/abitofhelp/connect-go-example",
# visibility = ["//visibility:private"],
# deps = ["@com_github_abitofhelp_connect_go_example//gen/greet/v1/greetv1connect:go_default_library"],
#)