...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "validate",
5 srcs = [
6 "annotations.go",
7 "annotations_pallet.go",
8 "errors.go",
9 "pallet.go",
10 "validate.go",
11 "warehouse.go",
12 ],
13 importpath = "edge-infra.dev/pkg/f8n/warehouse/oci/validate",
14 visibility = ["//visibility:public"],
15 deps = [
16 "//pkg/f8n/warehouse",
17 "//pkg/f8n/warehouse/cluster",
18 "//pkg/f8n/warehouse/oci",
19 "//pkg/f8n/warehouse/oci/layer",
20 "//pkg/f8n/warehouse/pallet",
21 "//pkg/lib/build/semver",
22 "@com_github_google_go_containerregistry//pkg/v1:pkg",
23 "@com_github_google_go_containerregistry//pkg/v1/validate",
24 "@org_uber_go_multierr//:multierr",
25 ],
26)
27
28go_test(
29 name = "validate_test",
30 srcs = [
31 "pallet_test.go",
32 "warehouse_test.go",
33 ],
34 embed = [":validate"],
35 deps = [
36 "//pkg/f8n/warehouse",
37 "//pkg/f8n/warehouse/cluster",
38 "//pkg/f8n/warehouse/oci",
39 "//pkg/f8n/warehouse/oci/layer",
40 "//pkg/f8n/warehouse/pallet",
41 "//test/fixtures",
42 "@com_github_google_go_containerregistry//pkg/name",
43 "@com_github_google_go_containerregistry//pkg/v1:pkg",
44 "@com_github_stretchr_testify//assert",
45 "@com_github_stretchr_testify//require",
46 ],
47)
View as plain text