fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3# gazelle:prefix github.com/sourcegraph/zoekt 4# gazelle:build_file_name BUILD.bazel 5load("@bazel_gazelle//:def.bzl", "gazelle") 6 7gazelle(name = "gazelle") 8 9gazelle( 10 name = "gazelle-update-repos", 11 args = [ 12 "-from_file=go.mod", 13 "-to_macro=deps.bzl%go_dependencies", 14 "-prune", 15 "-build_file_proto_mode=disable_global", 16 ], 17 command = "update-repos", 18) 19 20go_library( 21 name = "zoekt", 22 srcs = [ 23 "api.go", 24 "api_proto.go", 25 "bits.go", 26 "btree.go", 27 "contentprovider.go", 28 "eval.go", 29 "hititer.go", 30 "indexbuilder.go", 31 "indexdata.go", 32 "indexfile.go", 33 "marshal.go", 34 "matchiter.go", 35 "matchtree.go", 36 "merge.go", 37 "ngramoffset.go", 38 "read.go", 39 "section.go", 40 "toc.go", 41 "tombstones.go", 42 "tombstones_unix.go", 43 "tombstones_windows.go", 44 "write.go", 45 ], 46 importpath = "github.com/sourcegraph/zoekt", 47 visibility = ["//visibility:public"], 48 deps = [ 49 "//grpc/v1:grpc", 50 "//query", 51 "@com_github_edsrzf_mmap_go//:mmap-go", 52 "@com_github_go_enry_go_enry_v2//:go-enry", 53 "@com_github_go_enry_go_enry_v2//data", 54 "@com_github_grafana_regexp//:regexp", 55 "@com_github_rs_xid//:xid", 56 "@org_golang_google_protobuf//types/known/durationpb", 57 "@org_golang_google_protobuf//types/known/timestamppb", 58 ] + select({ 59 "@io_bazel_rules_go//go/platform:aix": [ 60 "@org_golang_x_sys//unix", 61 ], 62 "@io_bazel_rules_go//go/platform:android": [ 63 "@org_golang_x_sys//unix", 64 ], 65 "@io_bazel_rules_go//go/platform:darwin": [ 66 "@org_golang_x_sys//unix", 67 ], 68 "@io_bazel_rules_go//go/platform:dragonfly": [ 69 "@org_golang_x_sys//unix", 70 ], 71 "@io_bazel_rules_go//go/platform:freebsd": [ 72 "@org_golang_x_sys//unix", 73 ], 74 "@io_bazel_rules_go//go/platform:illumos": [ 75 "@org_golang_x_sys//unix", 76 ], 77 "@io_bazel_rules_go//go/platform:ios": [ 78 "@org_golang_x_sys//unix", 79 ], 80 "@io_bazel_rules_go//go/platform:js": [ 81 "@org_golang_x_sys//unix", 82 ], 83 "@io_bazel_rules_go//go/platform:linux": [ 84 "@org_golang_x_sys//unix", 85 ], 86 "@io_bazel_rules_go//go/platform:netbsd": [ 87 "@org_golang_x_sys//unix", 88 ], 89 "@io_bazel_rules_go//go/platform:openbsd": [ 90 "@org_golang_x_sys//unix", 91 ], 92 "@io_bazel_rules_go//go/platform:plan9": [ 93 "@org_golang_x_sys//unix", 94 ], 95 "@io_bazel_rules_go//go/platform:solaris": [ 96 "@org_golang_x_sys//unix", 97 ], 98 "//conditions:default": [], 99 }), 100) 101 102go_test( 103 name = "zoekt_test", 104 srcs = [ 105 "api_proto_test.go", 106 "api_test.go", 107 "bits_test.go", 108 "btree_test.go", 109 "contentprovider_test.go", 110 "eval_test.go", 111 "hititer_test.go", 112 "index_test.go", 113 "marshal_test.go", 114 "matchtree_test.go", 115 "merge_test.go", 116 "ngramoffset_test.go", 117 "read_test.go", 118 "tombstones_test.go", 119 ], 120 data = ["//testdata"], 121 embed = [":zoekt"], 122 embedsrcs = ["//testdata:testdata"], #keep 123 deps = [ 124 "//grpc/v1:grpc", 125 "//query", 126 "@com_github_google_go_cmp//cmp", 127 "@com_github_google_go_cmp//cmp/cmpopts", 128 "@com_github_grafana_regexp//:regexp", 129 "@com_github_roaringbitmap_roaring//:roaring", 130 "@org_golang_google_protobuf//proto", 131 ], 132)