load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "mutate", srcs = [ "flatten.go", "image.go", "map.go", "mutate.go", "name.go", ], importpath = "edge-infra.dev/pkg/f8n/warehouse/oci/mutate", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/warehouse", "//pkg/f8n/warehouse/oci", "//pkg/f8n/warehouse/oci/layer", "//pkg/f8n/warehouse/oci/match", "@com_github_google_go_containerregistry//pkg/v1:pkg", "@com_github_google_go_containerregistry//pkg/v1/empty", "@com_github_google_go_containerregistry//pkg/v1/match", "@com_github_google_go_containerregistry//pkg/v1/mutate", ], ) go_test( name = "mutate_test", srcs = [ "mutate_test.go", "name_test.go", ], deps = [ ":mutate", "//pkg/f8n/warehouse", "//pkg/f8n/warehouse/oci", "//pkg/f8n/warehouse/oci/match", "//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", ], )