From 0c7663d89103277a20a6eb71a38137dd57b4f6d2 Mon Sep 17 00:00:00 2001 From: vcidst Date: Mon, 21 Oct 2024 14:59:12 +0200 Subject: [PATCH] handle diff in grpc code --- Makefile | 4 +--- rasa_sdk/grpc_py/action_webhook_pb2.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0adad188b..a7ecef42f 100644 --- a/Makefile +++ b/Makefile @@ -115,9 +115,7 @@ generate-grpc: ## generate grpc code --pyi_out=. \ proto/action_webhook.proto -check-generate-grpc-code-in-sync: generate-grpc -check-generate-grpc-code-in-sync: ## check if the generated code is in sync with the proto files - # this is a helper to check if the generated code is in sync with the proto files +check-generate-grpc-code-in-sync: generate-grpc ## check if the generated code is in sync with the proto files, it uses a helper to check if the generated code is in sync with the proto files git diff --exit-code rasa_sdk/grpc_py | if [ "$$(wc -c)" -eq 0 ]; then echo "Generated code is in sync with proto files"; else echo "Generated code is not in sync with proto files"; exit 1; fi GRPC_STANDALONE_SERVER_INTEGRATION_TEST_RESULTS_FILE = grpc-standalone-server-integration-test-results.xml diff --git a/rasa_sdk/grpc_py/action_webhook_pb2.py b/rasa_sdk/grpc_py/action_webhook_pb2.py index 385d0ed66..1b09dbf31 100644 --- a/rasa_sdk/grpc_py/action_webhook_pb2.py +++ b/rasa_sdk/grpc_py/action_webhook_pb2.py @@ -20,7 +20,6 @@ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'rasa_sdk.grpc_py.action_webhook_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None _TRACKER_ACTIVELOOPENTRY._options = None _TRACKER_ACTIVELOOPENTRY._serialized_options = b'8\001'