...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "apierror",
5 srcs = [
6 "converter.go",
7 "error.go",
8 ],
9 importpath = "edge-infra.dev/pkg/edge/api/apierror",
10 visibility = ["//visibility:public"],
11 deps = [
12 "//pkg/lib/fog",
13 "//pkg/lib/runtime/version",
14 "@com_github_99designs_gqlgen//graphql",
15 "@com_github_vektah_gqlparser_v2//ast",
16 "@com_github_vektah_gqlparser_v2//gqlerror",
17 ],
18)
19
20go_test(
21 name = "apierror_test",
22 srcs = [
23 "converter_test.go",
24 "error_test.go",
25 ],
26 embed = [":apierror"],
27 deps = [
28 "//pkg/edge/api/apierror/bsl",
29 "@com_github_99designs_gqlgen//graphql",
30 "@com_github_stretchr_testify//assert",
31 "@com_github_vektah_gqlparser_v2//ast",
32 ],
33)
View as plain text