load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "upload_lib",
    srcs = ["upload.go"],
    importpath = "github.com/edgelesssys/constellation/v2/image/upload",
    visibility = ["//visibility:private"],
    deps = [
        "//image/upload/internal/cmd",
        "@com_github_spf13_cobra//:cobra",
    ],
)

go_binary(
    name = "upload",
    embed = [":upload_lib"],
    visibility = ["//visibility:public"],
)
