load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "errormanager", srcs = ["errormanager.go"], importpath = "github.com/pingcap/tidb/br/pkg/lightning/errormanager", visibility = ["//visibility:public"], deps = [ "//br/pkg/lightning/common", "//br/pkg/lightning/config", "//br/pkg/lightning/log", "//br/pkg/redact", "//br/pkg/utils", "@com_github_jedib0t_go_pretty_v6//table", "@com_github_jedib0t_go_pretty_v6//text", "@com_github_pingcap_errors//:errors", "@org_golang_x_sync//errgroup", "@org_uber_go_multierr//:multierr", "@org_uber_go_zap//:zap", ], ) go_test( name = "errormanager_test", timeout = "short", srcs = ["errormanager_test.go"], embed = [":errormanager"], flaky = True, deps = [ "//br/pkg/lightning/config", "//br/pkg/lightning/log", "//br/pkg/utils", "@com_github_data_dog_go_sqlmock//:go-sqlmock", "@com_github_stretchr_testify//require", "@org_uber_go_atomic//:atomic", ], )