1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3go_library( 4 name = "errors", 5 srcs = ["contextual_error.go"], 6 importpath = "edge-infra.dev/pkg/lib/errors", 7 visibility = ["//visibility:public"], 8) 9 10go_test( 11 name = "errors_test", 12 srcs = ["contextual_errors_test.go"], 13 embed = [":errors"], 14 deps = ["@com_github_stretchr_testify//assert"], 15)