...

Text file src/edge-infra.dev/cmd/tools/bzl-cache-rc-gen/BUILD.bazel

Documentation: edge-infra.dev/cmd/tools/bzl-cache-rc-gen

     1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
     2
     3go_library(
     4    name = "bzl-cache-rc-gen_lib",
     5    srcs = ["main.go"],
     6    importpath = "edge-infra.dev/cmd/tools/bzl-cache-rc-gen",
     7    visibility = ["//visibility:private"],
     8    deps = [
     9        "//pkg/lib/cli/sh",
    10        "@com_github_peterbourgon_ff_v3//:ff",
    11    ],
    12)
    13
    14go_binary(
    15    name = "bzl-cache-rc-gen",
    16    embed = [":bzl-cache-rc-gen_lib"],
    17    visibility = ["//visibility:public"],
    18)
    19
    20# linux version for embedding in containers without requiring compilation flgs
    21# based on host machine
    22go_binary(
    23    name = "bzl-cache-rc-gen_linux",
    24    embed = [":bzl-cache-rc-gen_lib"],
    25    goarch = "amd64",
    26    goos = "linux",
    27    visibility = ["//visibility:public"],
    28)

View as plain text