Add note about 'protoc' compiler version

'protoc' compiler which is used to generate gRPC API files should have
the same version as 'protobuf' in lower-constraints.txt.
Code generated by the old compiler supported in newer runtime, but
code generated by newer compiler could be not supported in older
runtime. At the same time there is no much sense using compiler older
than our lower requirements on 'protobuf'.

Change-Id: If79186185f72210eafd69c1ebdc2338782d31037
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
This commit is contained in:
Ilya Maximets 2019-05-28 13:42:15 +03:00
parent b889b2c1fe
commit 43f169a90e
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,10 @@
// by removing the 'gogoproto' dependencies.
// To regenerate api_pb2.py and api_pb2_grpc.py use:
// python -m grpc_tools.protoc -I./ --python_out=. --grpc_python_out=. kuryr_kubernetes/pod_resources/api.proto
//
// Important: Version of 'protoc' compiler should be equal to 'protobuf'
// version specified in lower-constraints.txt.
// Check: 'python -m grpc_tools.protoc --version'.
syntax = 'proto3';