blob: b157238d639beac4f0c049637de6f896ed91b750 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "rbe",
srcs = ["rbe.go"],
importpath = "go.skia.org/infra/go/cas/rbe",
visibility = ["//visibility:public"],
deps = [
"//go/cas",
"//go/skerr",
"@com_github_bazelbuild_remote_apis//build/bazel/remote/execution/v2:go_default_library",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/client",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/command",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/digest",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/filemetadata",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/uploadinfo",
"@com_github_golang_protobuf//ptypes/timestamp",
"@com_github_golang_protobuf//ptypes/wrappers",
"@io_opencensus_go//trace",
"@org_golang_google_grpc//credentials/oauth",
"@org_golang_x_oauth2//:oauth2",
],
)
go_test(
name = "rbe_test",
srcs = [
"rbe_manual_test.go",
"rbe_test.go",
],
embed = [":rbe"],
deps = [
"//go/cas/rbe/mocks",
"//go/deepequal/assertdeep",
"//go/testutils",
"@com_github_bazelbuild_remote_apis//build/bazel/remote/execution/v2:go_default_library",
"@com_github_bazelbuild_remote_apis_sdks//go/pkg/digest",
"@com_github_stretchr_testify//mock",
"@com_github_stretchr_testify//require",
"@org_golang_google_api//compute/v1:compute",
"@org_golang_x_oauth2//google",
],
)