generated from bazel-contrib/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD.bazel
39 lines (35 loc) · 947 Bytes
/
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
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@bazel_gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary")
gazelle_binary(
name = "gazelle_bin",
languages = DEFAULT_LANGUAGES + [
# "@bazel_skylib_gazelle_plugin//gazelle/bzl",
],
)
# gazelle:prefix github.com/fasterci/rules_mirror
gazelle(
name = "gazelle",
command = "fix",
extra_args = [
"-proto",
"disable_global",
],
gazelle = ":gazelle_bin",
)
gazelle(
name = "gazelle_update_deps",
command = "update-repos",
extra_args = [
"-from_file=go.mod",
"-to_macro=go_repositories.bzl%go_dependencies",
"-prune=true",
"-build_file_proto_mode=disable_global",
"-build_file_generation=on",
],
)
bzl_library(
name = "go_repositories",
srcs = ["go_repositories.bzl"],
visibility = ["//visibility:public"],
deps = ["@bazel_gazelle//:deps"],
)