load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "unpack", srcs = [ "layers.go", "options.go", "unpack.go", ], importpath = "edge-infra.dev/pkg/f8n/warehouse/lift/unpack", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/warehouse/cluster", "//pkg/f8n/warehouse/lift", "//pkg/f8n/warehouse/lift/render", "//pkg/f8n/warehouse/oci", "//pkg/f8n/warehouse/oci/layer", "//pkg/f8n/warehouse/oci/walk", "//pkg/f8n/warehouse/pallet", "@com_github_google_go_containerregistry//pkg/v1:pkg", "@io_k8s_sigs_kustomize_api//filters/namespace", ], ) go_test( name = "unpack_test", srcs = [ "layers_test.go", "options_test.go", "unpack_test.go", ], embed = [":unpack"], deps = [ "//pkg/f8n/warehouse/cluster", "//pkg/f8n/warehouse/lift", "//pkg/f8n/warehouse/oci", "//pkg/f8n/warehouse/oci/layer", "//pkg/f8n/warehouse/pallet", "//pkg/lib/uuid", "//test/fixtures", "@com_github_google_go_containerregistry//pkg/name", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", ], )