sourcegraph/internal/repos/BUILD.bazel
Noah S-C cb7034680d
bump to Go 1.22.1 (#60902)
🚀 💎 🙌 🚙 

## Test plan

CI
2024-03-06 17:38:43 -07:00

214 lines
6.7 KiB
Python

load("//dev:go_mockgen.bzl", "go_mockgen")
load("//dev:go_defs.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "repos",
srcs = [
"awscodecommit.go",
"azuredevops.go",
"bitbucketcloud.go",
"bitbucketserver.go",
"discoverable_sources.go",
"doc.go",
"exclude.go",
"gerrit.go",
"github.go",
"gitlab.go",
"gitolite.go",
"go_packages.go",
"jvm_packages.go",
"metrics.go",
"mocks_temp.go",
"npm_packages.go",
"observability.go",
"other.go",
"packages.go",
"pagure.go",
"perforce.go",
"phabricator.go",
"python_packages.go",
"ruby_packages.go",
"rust_packages.go",
"sources.go",
"sources_test_utils.go",
"status_messages.go",
"store.go",
"sync_errored.go",
"sync_worker.go",
"syncer.go",
"testing.go",
],
importpath = "github.com/sourcegraph/sourcegraph/internal/repos",
visibility = ["//:__subpackages__"],
deps = [
"//internal/actor",
"//internal/api",
"//internal/bytesize",
"//internal/codeintel/dependencies",
"//internal/conf",
"//internal/conf/reposource",
"//internal/database",
"//internal/database/basestore",
"//internal/database/dbutil",
"//internal/dotcom",
"//internal/encryption/keyring",
"//internal/errcode",
"//internal/extsvc",
"//internal/extsvc/auth",
"//internal/extsvc/awscodecommit",
"//internal/extsvc/azuredevops",
"//internal/extsvc/bitbucketcloud",
"//internal/extsvc/bitbucketserver",
"//internal/extsvc/crates",
"//internal/extsvc/gerrit",
"//internal/extsvc/github",
"//internal/extsvc/github/auth",
"//internal/extsvc/gitlab",
"//internal/extsvc/gitolite",
"//internal/extsvc/gomodproxy",
"//internal/extsvc/npm",
"//internal/extsvc/pagure",
"//internal/extsvc/perforce",
"//internal/extsvc/phabricator",
"//internal/extsvc/pypi",
"//internal/extsvc/rubygems",
"//internal/gitserver",
"//internal/gitserver/protocol",
"//internal/goroutine",
"//internal/httpcli",
"//internal/httptestutil",
"//internal/jsonc",
"//internal/lazyregexp",
"//internal/licensing",
"//internal/metrics",
"//internal/observation",
"//internal/ratelimit",
"//internal/repoupdater",
"//internal/trace",
"//internal/types",
"//internal/types/typestest",
"//internal/workerutil",
"//internal/workerutil/dbworker",
"//internal/workerutil/dbworker/store",
"//lib/errors",
"//lib/pointers",
"//schema",
"@com_github_aws_aws_sdk_go_v2//aws",
"@com_github_aws_aws_sdk_go_v2//aws/transport/http",
"@com_github_aws_aws_sdk_go_v2_config//:config",
"@com_github_aws_aws_sdk_go_v2_credentials//:credentials",
"@com_github_aws_aws_sdk_go_v2_service_codecommit//:codecommit",
"@com_github_dnaeon_go_vcr//cassette",
"@com_github_dnaeon_go_vcr//recorder",
"@com_github_goware_urlx//:urlx",
"@com_github_grafana_regexp//:regexp",
"@com_github_keegancsmith_sqlf//:sqlf",
"@com_github_lib_pq//:pq",
"@com_github_prometheus_client_golang//prometheus",
"@com_github_prometheus_client_golang//prometheus/promauto",
"@com_github_sourcegraph_log//:log",
"@io_opentelemetry_go_otel//attribute",
"@org_golang_x_net//http2",
"@org_golang_x_sync//errgroup",
"@org_golang_x_sync//semaphore",
"@org_golang_x_sync//singleflight",
"@org_golang_x_time//rate",
],
)
go_test(
name = "repos_test",
srcs = [
"awscodecommit_test.go",
"azuredevops_test.go",
"bitbucketcloud_test.go",
"bitbucketserver_test.go",
"exclude_test.go",
"gerrit_test.go",
"github_test.go",
"gitlab_test.go",
"gitolite_test.go",
"go_packages_test.go",
"main_test.go",
"npm_packages_test.go",
"other_test.go",
"packages_test.go",
"pagure_test.go",
"perforce_test.go",
"python_packages_test.go",
"sources_test.go",
"status_messages_test.go",
"store_test.go",
"sync_worker_test.go",
"syncer_test.go",
],
data = glob(["testdata/**"]),
embed = [":repos"],
tags = [
# Test requires localhost database
"requires-network",
],
deps = [
"//internal/api",
"//internal/codeintel/dependencies",
"//internal/conf",
"//internal/conf/conftypes",
"//internal/conf/reposource",
"//internal/database",
"//internal/database/dbmocks",
"//internal/database/dbtest",
"//internal/dotcom",
"//internal/encryption/keyring",
"//internal/extsvc",
"//internal/extsvc/auth",
"//internal/extsvc/awscodecommit",
"//internal/extsvc/bitbucketcloud",
"//internal/extsvc/bitbucketcloud/testing",
"//internal/extsvc/bitbucketserver",
"//internal/extsvc/github",
"//internal/extsvc/gitlab",
"//internal/extsvc/gitolite",
"//internal/extsvc/phabricator",
"//internal/github_apps/types",
"//internal/gitserver",
"//internal/gitserver/protocol",
"//internal/goroutine",
"//internal/httpcli",
"//internal/httptestutil",
"//internal/licensing",
"//internal/observation",
"//internal/ratelimit",
"//internal/rcache",
"//internal/testutil",
"//internal/timeutil",
"//internal/types",
"//internal/types/typestest",
"//lib/errors",
"//lib/pointers",
"//schema",
"@com_github_derision_test_go_mockgen_v2//testutil/require",
"@com_github_google_go_cmp//cmp",
"@com_github_google_go_cmp//cmp/cmpopts",
"@com_github_google_uuid//:uuid",
"@com_github_keegancsmith_sqlf//:sqlf",
"@com_github_sourcegraph_log//:log",
"@com_github_sourcegraph_log//logtest",
"@com_github_sourcegraph_zoekt//:zoekt",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_golang_x_time//rate",
],
)
go_mockgen(
name = "generate_mocks",
out = "mocks_temp.go",
manifests = [
"//:mockgen.yaml",
"//:mockgen.test.yaml",
"//:mockgen.temp.yaml",
],
deps = [":repos"],
)