forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
60 lines (58 loc) · 1.81 KB
/
BUILD.bazel
File metadata and controls
60 lines (58 loc) · 1.81 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
50
51
52
53
54
55
56
57
58
59
60
load("//dev:go_defs.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "codegraph",
srcs = [
"cleanup.go",
"data_store.go",
"insert.go",
"locus.go",
"observability.go",
"scip_utils.go",
],
importpath = "github.com/sourcegraph/sourcegraph/internal/codeintel/codegraph",
visibility = ["//:__subpackages__"],
deps = [
"//internal/codeintel/core",
"//internal/codeintel/shared",
"//internal/codeintel/shared/ranges",
"//internal/codeintel/shared/trie",
"//internal/codeintel/uploads/shared",
"//internal/collections",
"//internal/database/basestore",
"//internal/database/batch",
"//internal/database/dbutil",
"//internal/metrics",
"//internal/observation",
"//lib/codeintel/precise",
"//lib/errors",
"@com_github_keegancsmith_sqlf//:sqlf",
"@com_github_lib_pq//:pq",
"@com_github_sourcegraph_log//:log",
"@com_github_sourcegraph_scip//bindings/go/scip",
"@io_opentelemetry_go_otel//attribute",
"@org_golang_google_protobuf//proto",
],
)
go_test(
name = "codegraph_test",
srcs = [
"cleanup_test.go",
"insert_test.go",
"scip_utils_test.go",
],
data = glob(["testdata/**"]),
embed = [":codegraph"],
tags = ["requires-network"],
deps = [
"//internal/codeintel/shared",
"//internal/database/basestore",
"//internal/database/dbtest",
"//internal/observation",
"@com_github_google_go_cmp//cmp",
"@com_github_keegancsmith_sqlf//:sqlf",
"@com_github_sourcegraph_log//:log",
"@com_github_sourcegraph_log//logtest",
"@com_github_sourcegraph_scip//bindings/go/scip",
],
)