load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") go_library( name = "bzl-cache-rc-gen_lib", srcs = ["main.go"], importpath = "edge-infra.dev/cmd/tools/bzl-cache-rc-gen", visibility = ["//visibility:private"], deps = [ "//pkg/lib/cli/sh", "@com_github_peterbourgon_ff_v3//:ff", ], ) go_binary( name = "bzl-cache-rc-gen", embed = [":bzl-cache-rc-gen_lib"], visibility = ["//visibility:public"], ) # linux version for embedding in containers without requiring compilation flgs # based on host machine go_binary( name = "bzl-cache-rc-gen_linux", embed = [":bzl-cache-rc-gen_lib"], goarch = "amd64", goos = "linux", visibility = ["//visibility:public"], )