load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "release", srcs = [ "environment.go", "index.go", "metadata.go", "release.go", "releaser.go", "repository.go", ], importpath = "edge-infra.dev/pkg/f8n/warehouse/release", visibility = ["//visibility:public"], deps = [ "//:edge-infra.dev", "//pkg/f8n/warehouse", "//pkg/f8n/warehouse/oci", "//pkg/f8n/warehouse/oci/name", "//pkg/f8n/warehouse/oci/remote", "//pkg/f8n/warehouse/packagelock", "//pkg/f8n/warehouse/pallet", "//pkg/lib/build/semver", "@com_github_go_logr_logr//:logr", "@com_github_google_go_containerregistry//pkg/authn", "@com_github_google_go_containerregistry//pkg/name", "@com_github_google_go_containerregistry//pkg/v1:pkg", "@com_github_google_go_containerregistry//pkg/v1/empty", "@com_github_google_go_containerregistry//pkg/v1/google", "@com_github_google_go_containerregistry//pkg/v1/mutate", "@com_github_google_go_containerregistry//pkg/v1/remote", "@com_github_google_go_containerregistry//pkg/v1/types", "@in_gopkg_yaml_v3//:yaml_v3", ], ) go_test( name = "release_test", srcs = [ "release_test.go", "releaser_test.go", ], data = glob(["testdata/**"]), embed = [":release"], tags = [ "requires-network", ], deps = [ "//pkg/f8n/warehouse/cluster", "//pkg/f8n/warehouse/oci/layer", "//pkg/f8n/warehouse/pallet", "//pkg/lib/build/semver", "@com_github_stretchr_testify//assert", "@in_gopkg_yaml_v3//:yaml_v3", ], )