blob: 203e159364ac9b04dfb3fc8d97eb6f598e8ab50b [file]
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "rsproxy",
srcs = [
"blobs.go",
"client.go",
"flags.go",
"resultstore.go",
"server.go",
],
importpath = "github.com/bazelbuild/rsclient/internal/pkg/rsproxy",
visibility = ["//:__subpackages__"],
deps = [
"@com_github_bazelbuild_remote_apis//build/bazel/remote/execution/v2:execution",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/actas",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/cas",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/credshelper",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/moreflag",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/retry",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/uploadinfo",
"@com_github_golang_glog//:glog",
"@com_github_google_uuid//:uuid",
"@org_golang_google_genproto//googleapis/devtools/resultstore/v2:resultstore",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//credentials",
"@org_golang_google_grpc//credentials/oauth",
"@org_golang_google_grpc//keepalive",
"@org_golang_google_grpc//metadata",
"@org_golang_google_grpc//status",
"@org_golang_google_protobuf//encoding/prototext",
"@org_golang_google_protobuf//proto",
"@org_golang_google_protobuf//types/known/durationpb",
"@org_golang_google_protobuf//types/known/fieldmaskpb",
"@org_golang_google_protobuf//types/known/wrapperspb",
"@org_golang_x_oauth2//:oauth2",
"@org_golang_x_sync//errgroup",
],
)
go_test(
name = "rsproxy_test",
srcs = ["resultstore_test.go"],
embed = [":rsproxy"],
deps = [
"@com_github_bazelbuild_remote_apis//build/bazel/remote/execution/v2:execution",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/cas",
"@com_github_google_go_cmp//cmp",
"@org_golang_google_genproto//googleapis/devtools/resultstore/v2:resultstore",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//credentials/insecure",
"@org_golang_google_grpc//status",
"@org_golang_google_grpc//test/bufconn",
"@org_golang_google_protobuf//testing/protocmp",
"@org_golang_google_protobuf//types/known/emptypb",
],
)