load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "validate", srcs = [ "annotations.go", "annotations_pallet.go", "errors.go", "pallet.go", "validate.go", "warehouse.go", ], importpath = "edge-infra.dev/pkg/f8n/warehouse/oci/validate", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/warehouse", "//pkg/f8n/warehouse/cluster", "//pkg/f8n/warehouse/oci", "//pkg/f8n/warehouse/oci/layer", "//pkg/f8n/warehouse/pallet", "//pkg/lib/build/semver", "@com_github_google_go_containerregistry//pkg/v1:pkg", "@com_github_google_go_containerregistry//pkg/v1/validate", "@org_uber_go_multierr//:multierr", ], ) go_test( name = "validate_test", srcs = [ "pallet_test.go", "warehouse_test.go", ], embed = [":validate"], deps = [ "//pkg/f8n/warehouse", "//pkg/f8n/warehouse/cluster", "//pkg/f8n/warehouse/oci", "//pkg/f8n/warehouse/oci/layer", "//pkg/f8n/warehouse/pallet", "//test/fixtures", "@com_github_google_go_containerregistry//pkg/name", "@com_github_google_go_containerregistry//pkg/v1:pkg", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", ], )