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.4k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
49 lines (47 loc) · 1.56 KB
/
BUILD.bazel
File metadata and controls
49 lines (47 loc) · 1.56 KB
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
load("//dev:go_defs.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "contract",
srcs = [
"bigquery.go",
"contract.go",
"diagnostics.go",
"env.go",
"postgresql.go",
],
importpath = "github.com/sourcegraph/sourcegraph/lib/managedservicesplatform/runtime/contract",
visibility = ["//visibility:public"],
deps = [
"//lib/errors",
"//lib/managedservicesplatform/bigquerywriter",
"//lib/managedservicesplatform/cloudsql",
"//lib/managedservicesplatform/runtime/internal/opentelemetry",
"//lib/pointers",
"@com_github_getsentry_sentry_go//:sentry-go",
"@com_github_google_uuid//:uuid",
"@com_github_jackc_pgx_v5//:pgx",
"@com_github_jackc_pgx_v5//stdlib",
"@com_github_prometheus_client_golang//prometheus/promhttp",
"@com_github_sourcegraph_log//:log",
"@com_google_cloud_go_bigquery//:bigquery",
"@com_google_cloud_go_cloudsqlconn//:cloudsqlconn",
"@io_opentelemetry_go_otel_trace//:trace",
],
)
go_test(
name = "contract_test",
srcs = [
"contract_test.go",
"diagnostics_test.go",
],
embed = [":contract"],
deps = [
"//lib/errors",
"//lib/managedservicesplatform/runtime/contract/contractest:mock",
"//lib/pointers",
"@com_github_hexops_autogold_v2//:autogold",
"@com_github_sourcegraph_log//logtest",
"@com_github_stretchr_testify//assert",
"@io_opentelemetry_go_otel_sdk//trace",
],
)