...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "packagelock",
5 srcs = [
6 "inspect.go",
7 "packagelock.go",
8 ],
9 embedsrcs = ["package-lock-rules.cue"],
10 importpath = "edge-infra.dev/pkg/f8n/warehouse/packagelock",
11 visibility = ["//visibility:public"],
12 deps = [
13 "//pkg/edge/yamlfmt",
14 "//pkg/f8n/warehouse",
15 "//pkg/f8n/warehouse/oci",
16 "//pkg/f8n/warehouse/oci/remote",
17 "//pkg/lib/build/bazel",
18 "@com_github_go_logr_logr//:logr",
19 "@com_github_google_go_containerregistry//pkg/authn",
20 "@com_github_google_go_containerregistry//pkg/name",
21 "@com_github_google_go_containerregistry//pkg/v1/google",
22 "@com_github_google_go_containerregistry//pkg/v1/remote",
23 "@org_cuelang_go//cue",
24 "@org_cuelang_go//cue/cuecontext",
25 "@org_cuelang_go//encoding/gocode/gocodec",
26 "@org_cuelang_go//encoding/yaml",
27 "@org_uber_go_multierr//:multierr",
28 ],
29)
30
31go_test(
32 name = "packagelock_test",
33 srcs = ["packagelock_test.go"],
34 data = glob(["testdata/**"]),
35 embed = [":packagelock"],
36 tags = ["requires-network"],
37)
View as plain text