forked from bazel-contrib/bazel-gazelle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
40 lines (36 loc) · 778 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
40
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "config",
srcs = [
"config.go",
"constants.go",
],
importpath = "github.com/bazelbuild/bazel-gazelle/config",
visibility = ["//visibility:public"],
deps = [
"//internal/wspace",
"//rule",
],
)
go_test(
name = "config_test",
srcs = ["config_test.go"],
embed = [":config"],
deps = ["//rule"],
)
filegroup(
name = "all_files",
testonly = True,
srcs = [
"BUILD.bazel",
"config.go",
"config_test.go",
"constants.go",
],
visibility = ["//visibility:public"],
)
alias(
name = "go_default_library",
actual = ":config",
visibility = ["//visibility:public"],
)