fork of https://github.com/sourcegraph/zoekt
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "shards",
5 srcs = [
6 "aggregate.go",
7 "eval.go",
8 "sched.go",
9 "shards.go",
10 "watcher.go",
11 ],
12 importpath = "github.com/sourcegraph/zoekt/shards",
13 visibility = ["//visibility:public"],
14 deps = [
15 "//:zoekt",
16 "//query",
17 "//stream",
18 "//trace",
19 "@com_github_fsnotify_fsnotify//:fsnotify",
20 "@com_github_prometheus_client_golang//prometheus",
21 "@com_github_prometheus_client_golang//prometheus/promauto",
22 "@org_golang_x_sync//semaphore",
23 "@org_uber_go_atomic//:atomic",
24 ],
25)
26
27go_test(
28 name = "shards_test",
29 srcs = [
30 "eval_test.go",
31 "sched_test.go",
32 "shards_test.go",
33 "watcher_test.go",
34 ],
35 embed = [":shards"],
36 deps = [
37 "//:zoekt",
38 "//query",
39 "//stream",
40 "@com_github_google_go_cmp//cmp",
41 "@com_github_google_go_cmp//cmp/cmpopts",
42 "@com_github_grafana_regexp//:regexp",
43 "@com_github_roaringbitmap_roaring//:roaring",
44 ],
45)