load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") go_library( name = "gopherage_lib", srcs = ["main.go"], importpath = "edge-infra.dev/third_party/gopherage", visibility = ["//visibility:private"], deps = [ "//third_party/gopherage/cmd/aggregate", "//third_party/gopherage/cmd/diff", "//third_party/gopherage/cmd/filter", "//third_party/gopherage/cmd/html", "//third_party/gopherage/cmd/junit", "//third_party/gopherage/cmd/merge", "//third_party/gopherage/cmd/metadata", "@com_github_spf13_cobra//:cobra", ], ) go_binary( name = "gopherage", embed = [":gopherage_lib"], visibility = ["//visibility:public"], ) # linux version for embedding in containers without requiring compilation flgs # based on host machine go_binary( name = "gopherage_linux", embed = [":gopherage_lib"], goarch = "amd64", goos = "linux", visibility = ["//visibility:public"], )