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
|
package(
default_visibility = ["//src:__subpackages__"],
)
config_setting(
name = "darwin",
values = {"host_cpu": "darwin"},
)
config_setting(
name = "k8",
values = {"host_cpu": "k8"},
)
filegroup(
name = "toolchain",
srcs = select({
":darwin": ["@golang-darwin-amd64//:toolchain"],
":k8": ["@golang-linux-amd64//:toolchain"],
}),
visibility = ["//visibility:public"],
)
filegroup(
name = "go_tool",
srcs = select({
":darwin": ["@golang-darwin-amd64//:go_tool"],
":k8": ["@golang-linux-amd64//:go_tool"],
}),
visibility = ["//visibility:public"],
)
filegroup(
name = "srcs",
srcs = [
"BUILD",
"BUILD.go-toolchain",
"WORKSPACE.go-toolchain",
],
visibility = [
"//src:__subpackages__",
"//tools/build_rules/go:__pkg__",
],
)
|