-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
52 lines (47 loc) · 1.09 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
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/uhthomas/rules_go-issue
gazelle(name = "gazelle")
platform(
name = "linux_x86_64",
constraint_values = [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
)
platform(
name = "macos_x86_64",
constraint_values = [
"@platforms//cpu:x86_64",
"@platforms//os:macos",
],
)
go_library(
name = "rules_go-issue_lib",
srcs = ["main.go"],
importpath = "github.com/uhthomas/rules_go-issue",
visibility = ["//visibility:private"],
)
[
go_binary(
name = "{}pure_{}_{}".format(
"" if pure == "on" else "im",
goos,
goarch,
),
embed = [":rules_go-issue_lib"],
goarch = goarch,
goos = goos,
pure = pure,
visibility = ["//visibility:public"],
)
for (goos, goarch) in [
("auto", "auto"),
("linux", "amd64"),
("darwin", "amd64"),
]
for pure in [
"on",
"off",
]
]