This repository was archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathBUILD.bazel
52 lines (50 loc) · 1.55 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//dev:go_defs.bzl", "go_test")
go_library(
name = "retry",
srcs = [
"backoff.go",
"doc.go",
"options.go",
"retry.go",
],
importpath = "github.com/sourcegraph/sourcegraph/internal/grpc/retry",
tags = [TAG_PLATFORM_SOURCE],
visibility = ["//:__subpackages__"],
deps = [
"//internal/grpc/grpcutil",
"//internal/trace",
"@com_github_grpc_ecosystem_go_grpc_middleware_v2//metadata",
"@com_github_prometheus_client_golang//prometheus",
"@com_github_prometheus_client_golang//prometheus/promauto",
"@com_github_sourcegraph_log//:log",
"@io_opentelemetry_go_otel//attribute",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//metadata",
"@org_golang_google_grpc//status",
],
)
go_test(
name = "retry_test",
srcs = [
"examples_test.go",
"retry_test.go",
],
embed = [":retry"],
tags = [
TAG_PLATFORM_SOURCE,
"requires-network",
],
deps = [
"//internal/grpc/retry/testpb",
"@com_github_sourcegraph_log//:log",
"@com_github_sourcegraph_log//logtest",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@com_github_stretchr_testify//suite",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//status",
],
)