mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
44 lines
1.2 KiB
Python
44 lines
1.2 KiB
Python
load("//dev:go_defs.bzl", "go_test")
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
go_library(
|
|
name = "commit",
|
|
srcs = ["commit.go"],
|
|
importpath = "github.com/sourcegraph/sourcegraph/internal/search/commit",
|
|
tags = [TAG_PLATFORM_SEARCH],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//internal/api",
|
|
"//internal/database",
|
|
"//internal/errcode",
|
|
"//internal/gitserver",
|
|
"//internal/gitserver/gitdomain",
|
|
"//internal/gitserver/protocol",
|
|
"//internal/search",
|
|
"//internal/search/job",
|
|
"//internal/search/query",
|
|
"//internal/search/result",
|
|
"//internal/search/streaming",
|
|
"//internal/types",
|
|
"@com_github_grafana_regexp//:regexp",
|
|
"@com_github_sourcegraph_conc//pool",
|
|
"@io_opentelemetry_go_otel//attribute",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "commit_test",
|
|
timeout = "short",
|
|
srcs = ["commit_test.go"],
|
|
embed = [":commit"],
|
|
tags = [TAG_PLATFORM_SEARCH],
|
|
deps = [
|
|
"//internal/database",
|
|
"//internal/database/dbmocks",
|
|
"//internal/gitserver/protocol",
|
|
"//internal/search/query",
|
|
"//internal/types",
|
|
"@com_github_stretchr_testify//require",
|
|
],
|
|
)
|