Skip to content

Commit b910ee7

Browse files
authored
💥[breaking] Remove cloud files (#218)
* Remove cloud files * Remove cloud from Makefile and proxygenerator
1 parent d6c89de commit b910ee7

27 files changed

+2
-24971
lines changed

‎Makefile

-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ COLOR := "\e[1;36m%s\e[0m\n"
2424
PINNED_DEPENDENCIES := \
2525

2626
PROTO_ROOT := proto/api
27-
PROTO_CLOUD_ROOT := proto/api-cloud
2827
PROTO_OUT := .
2928
PROTO_IMPORTS = \
3029
-I=$(PROTO_ROOT)
@@ -55,7 +54,6 @@ go-grpc: clean .go-helpers-installed $(PROTO_OUT)
5554
printf $(COLOR) "Compile for go-gRPC..."
5655
go run ./cmd/protogen \
5756
--root=$(PROTO_ROOT) \
58-
--root=$(PROTO_CLOUD_ROOT) \
5957
--output=$(PROTO_OUT) \
6058
--exclude=internal \
6159
--exclude=proto/api/google \
@@ -82,10 +80,8 @@ grpc-mock:
8280
printf $(COLOR) "Generate gRPC mocks..."
8381
mockgen -package operatorservicemock -source operatorservice/v1/service_grpc.pb.go -destination operatorservicemock/v1/service_grpc.pb.mock.go
8482
mockgen -package workflowservicemock -source workflowservice/v1/service_grpc.pb.go -destination workflowservicemock/v1/service_grpc.pb.mock.go
85-
mockgen -package cloudservicemock -source cloud/cloudservice/v1/service_grpc.pb.go -destination cloud/cloudservicemock/v1/service_grpc.pb.mock.go
8683
go run ./cmd/mockgen-fix OperatorService operatorservicemock/v1/service_grpc.pb.mock.go
8784
go run ./cmd/mockgen-fix WorkflowService workflowservicemock/v1/service_grpc.pb.mock.go
88-
go run ./cmd/mockgen-fix CloudService cloud/cloudservicemock/v1/service_grpc.pb.mock.go
8985

9086
.PHONY: proxy
9187
proxy: gen-proto-desc
@@ -100,7 +96,6 @@ gen-proto-desc:
10096
printf $(COLOR) "Generating proto descriptors..."
10197
go run ./cmd/protogen \
10298
--root=$(PROTO_ROOT) \
103-
--root=$(PROTO_CLOUD_ROOT) \
10499
--output=$(PROTO_OUT) \
105100
--exclude=internal \
106101
--exclude=proto/api/google \
@@ -156,5 +151,3 @@ clean:
156151
printf $(COLOR) "Deleting generated go files..."
157152
# Delete all directories with *.pb.go and *.mock.go files from $(PROTO_OUT)
158153
find $(PROTO_OUT) \( -name "*.pb.go" -o -name "*.mock.go" -o -name "*.go-helpers.go" \) | xargs -I{} dirname {} | egrep -v 'testprotos' | sort -u | xargs rm -rf
159-
# Delete entire cloud dir
160-
rm -rf cloud

‎cloud/account/v1/message.go-helpers.pb.go

-176
This file was deleted.

0 commit comments

Comments
 (0)