-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
61 lines (55 loc) · 1.43 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
53
54
55
56
57
58
59
60
61
# gazelle:prefix github.com/jotadrilo/rubbi-sh
# gazelle:proto disable_global
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@bazel_gazelle//:def.bzl", "gazelle")
gazelle(name = "gazelle")
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
"-build_file_proto_mode=disable_global",
],
command = "update-repos",
)
go_library(
name = "go_default_library",
srcs = [
"config.go",
"main.go",
"tui.go",
],
importpath = "github.com/jotadrilo/rubbi-sh",
visibility = ["//visibility:private"],
deps = [
"@com_github_juju_errors//:go_default_library",
"@com_github_manifoldco_promptui//:go_default_library",
],
)
go_binary(
name = "rubbi-sh-osx",
embed = [":go_default_library"],
goarch = "amd64",
goos = "darwin",
pure = "on",
visibility = ["//visibility:public"],
x_defs = {
"main.version": "{STABLE_VERSION}",
"main.commit": "{STABLE_COMMIT}",
"main.date": "{STABLE_DATE}",
},
)
go_binary(
name = "rubbi-sh-linux",
embed = [":go_default_library"],
goarch = "amd64",
goos = "linux",
pure = "on",
visibility = ["//visibility:public"],
x_defs = {
"main.version": "{STABLE_VERSION}",
"main.commit": "{STABLE_COMMIT}",
"main.date": "{STABLE_DATE}",
},
)