-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
34 lines (28 loc) · 1.1 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
load("@bazel_gazelle//:def.bzl", "gazelle")
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
# The go packages in this repository will have this string as a prefox in import statements.
# gazelle:prefix github.com/ghasemloo/bazel_go
# Mapping from proto import path to go import path.
# gazelle:resolve proto proto google/rpc/status.proto @googleapis//google/rpc:status_proto
# gazelle:resolve proto go google/rpc/status.proto @org_golang_google_genproto//googleapis/rpc/status
# gazelle:resolve proto google/longrunning/operations.proto @googleapis//google/longrunning:operations_proto
# gazelle:resolve proto go google/longrunning/operations.proto @org_golang_google_genproto//googleapis/longrunning
# The gazelle target to fix BUILD files.
# To run gazelle: bazel run //:gazelle
gazelle(
name = "gazelle",
args = [
"-go_prefix=github.com/ghasemloo/bazel_go",
],
command = "fix",
)
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
],
command = "update-repos",
)