...
1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2
3go_library(
4 name = "gopherage_lib",
5 srcs = ["main.go"],
6 importpath = "edge-infra.dev/third_party/gopherage",
7 visibility = ["//visibility:private"],
8 deps = [
9 "//third_party/gopherage/cmd/aggregate",
10 "//third_party/gopherage/cmd/diff",
11 "//third_party/gopherage/cmd/filter",
12 "//third_party/gopherage/cmd/html",
13 "//third_party/gopherage/cmd/junit",
14 "//third_party/gopherage/cmd/merge",
15 "//third_party/gopherage/cmd/metadata",
16 "@com_github_spf13_cobra//:cobra",
17 ],
18)
19
20go_binary(
21 name = "gopherage",
22 embed = [":gopherage_lib"],
23 visibility = ["//visibility:public"],
24)
25
26# linux version for embedding in containers without requiring compilation flgs
27# based on host machine
28go_binary(
29 name = "gopherage_linux",
30 embed = [":gopherage_lib"],
31 goarch = "amd64",
32 goos = "linux",
33 visibility = ["//visibility:public"],
34)
View as plain text