blob: 56b5e865c76cee60c35803eeb1acbebd0353c013 [file] [log] [blame] [edit]
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "gitilesfollower_lib",
srcs = ["gitilesfollower.go"],
importpath = "go.skia.org/infra/golden/cmd/gitilesfollower",
visibility = ["//visibility:private"],
deps = [
"//go/common",
"//go/gitiles",
"//go/httputils",
"//go/skerr",
"//go/sklog",
"//go/sql/sqlutil",
"//go/util",
"//go/vcsinfo",
"//golden/go/config",
"//golden/go/sql",
"//golden/go/sql/schema",
"//golden/go/tracing",
"@com_github_cockroachdb_cockroach_go_v2//crdb/crdbpgx",
"@com_github_google_uuid//:uuid",
"@com_github_jackc_pgx_v4//:pgx",
"@com_github_jackc_pgx_v4//pgxpool",
"@io_opencensus_go//trace",
"@org_golang_x_oauth2//google",
],
)
go_binary(
name = "gitilesfollower",
embed = [":gitilesfollower_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "gitilesfollower_test",
srcs = [
"gitilesfollower_manual_test.go",
"gitilesfollower_test.go",
],
data = ["//golden/k8s-instances:gitilesfollower_configs"],
embed = [":gitilesfollower_lib"],
deps = [
"//go/gitiles",
"//go/httputils",
"//go/testutils",
"//go/vcsinfo",
"//golden/cmd/gitilesfollower/mocks",
"//golden/go/config",
"//golden/go/config/validation",
"//golden/go/sql/datakitchensink",
"//golden/go/sql/schema",
"//golden/go/sql/sqltest",
"//golden/go/types",
"@com_github_jackc_pgx_v4//pgxpool",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//mock",
"@com_github_stretchr_testify//require",
],
)