This commit is contained in:
Mustafa Gezen 2023-08-31 10:21:38 +02:00
parent 1894e0e759
commit d37b604629
Signed by: mustafa
GPG Key ID: DCDF010D946438C1
10 changed files with 35 additions and 8 deletions

1
base/go/BUILD vendored
View File

@ -46,6 +46,7 @@ go_library(
"//vendor/go.ciq.dev/pika",
"//vendor/go.temporal.io/api/workflowservice/v1:workflowservice",
"//vendor/go.temporal.io/sdk/client",
"//vendor/go.temporal.io/sdk/interceptor",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//credentials",

6
third_party/BUILD vendored
View File

@ -5,9 +5,3 @@ java_binary(
main_class = "com.google.copybara.Main",
runtime_deps = [":copybara_deploy.jar"],
)
alias(
name = "openapi-generator-cli.jar",
actual = ":openapi-generator-cli-6.6.0.jar",
visibility = ["//visibility:public"],
)

View File

@ -17,6 +17,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "rpc",
srcs = [
"rescue.go",
"rpc.go",
"worker.go",
],
@ -26,7 +27,9 @@ go_library(
"//base/go",
"//tools/mothership/db",
"//tools/mothership/proto/admin/v1:pb",
"//tools/mothership/proto/v1:pb",
"//vendor/go.ciq.dev/pika",
"//vendor/go.temporal.io/sdk/client",
"@go_googleapis//google/rpc:errdetails_go_proto",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//codes",

View File

@ -23,6 +23,7 @@ go_library(
"//base/go",
"//tools/mothership/admin/rpc",
"//vendor/github.com/urfave/cli/v2:cli",
"//vendor/go.temporal.io/sdk/client",
],
)

View File

@ -27,6 +27,7 @@ go_library(
"//tools/mothership/ui",
"//vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime",
"//vendor/github.com/urfave/cli/v2:cli",
"//vendor/go.temporal.io/sdk/client",
],
)

View File

@ -41,5 +41,6 @@ go_library(
"//base/go",
"//tools/mothership/rpc",
"//vendor/github.com/urfave/cli/v2:cli",
"//vendor/go.temporal.io/sdk/client",
],
)

View File

@ -17,6 +17,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "db",
srcs = [
"batch.go",
"entry.go",
"worker.go",
],

View File

@ -27,6 +27,7 @@ proto_library(
],
visibility = ["//visibility:public"],
deps = [
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:timestamp_proto",
"@com_google_protobuf//:wrappers_proto",
"@go_googleapis//google/api:annotations_proto",
@ -51,8 +52,8 @@ go_proto_library(
proto = ":mothershippb_proto",
visibility = ["//visibility:public"],
deps = [
"//third_party/googleapis/google/longrunning:longrunning_go_proto",
"@go_googleapis//google/api:annotations_go_proto",
"@go_googleapis//google/longrunning:longrunning_go_proto",
"@org_golang_google_genproto//googleapis/api/annotations",
],
)

View File

@ -17,18 +17,34 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "rpc",
srcs = [
"batch.go",
"entry.go",
"operation.go",
"ping.go",
"rpc.go",
"worker.go",
],
importpath = "go.resf.org/peridot/tools/mothership/rpc",
visibility = ["//visibility:public"],
deps = [
"//base/go",
"//third_party/googleapis/google/longrunning:longrunning_go_proto",
"//tools/mothership/db",
"//tools/mothership/proto/v1:pb",
"//tools/mothership/worker_server",
"//vendor/go.ciq.dev/pika",
"//vendor/go.temporal.io/api/enums/v1:enums",
"//vendor/go.temporal.io/api/serviceerror",
"//vendor/go.temporal.io/api/workflowservice/v1:workflowservice",
"//vendor/go.temporal.io/sdk/client",
"@go_googleapis//google/rpc:code_go_proto",
"@go_googleapis//google/rpc:status_go_proto",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//metadata",
"@org_golang_google_grpc//status",
"@org_golang_google_protobuf//types/known/anypb",
"@org_golang_google_protobuf//types/known/emptypb",
"@org_golang_google_protobuf//types/known/timestamppb",
],
)

View File

@ -16,7 +16,10 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "srpm_import",
srcs = ["srpm_import.go"],
srcs = [
"srpm_import.go",
"srpmproc_compat.go",
],
importpath = "go.resf.org/peridot/tools/mothership/worker_server/srpm_import",
visibility = ["//visibility:public"],
deps = [
@ -28,8 +31,13 @@ go_library(
"//vendor/github.com/go-git/go-git/v5/plumbing/object",
"//vendor/github.com/go-git/go-git/v5/storage",
"//vendor/github.com/pkg/errors",
"//vendor/github.com/rocky-linux/srpmproc/pb",
"//vendor/github.com/rocky-linux/srpmproc/pkg/data",
"//vendor/github.com/rocky-linux/srpmproc/pkg/directives",
"//vendor/github.com/rocky-linux/srpmproc/pkg/misc",
"//vendor/github.com/sassoftware/go-rpmutils",
"//vendor/golang.org/x/crypto/openpgp",
"@org_golang_google_protobuf//encoding/prototext",
],
)