blob: 88d4a08247c71c868bbcfecb5d3e3853cfa1995c [file]
load("@rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "server_lib",
srcs = [
"main.go",
"server.go",
],
importpath = "go.skia.org/infra/comment_rag/go/api/server",
visibility = ["//visibility:private"],
deps = [
"//comment_rag/go/api/services/comment",
"//comment_rag/go/commentstore",
"//go/cleanup",
"//go/httputils",
"//go/metrics2",
"//go/skerr",
"//go/sklog",
"//go/sklog/sklogimpl",
"//go/sklog/stdlogging",
"//go/urfavecli",
"//rag/go/config",
"//rag/go/tracing",
"@com_github_grpc_ecosystem_grpc_gateway_v2//runtime",
"@com_github_urfave_cli_v2//:cli",
"@com_google_cloud_go_spanner//:spanner",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//reflection",
],
)
go_binary(
name = "server",
embed = [":server_lib"],
visibility = ["//visibility:public"],
)