mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests/functional: Require same version of protoc everwhere
The main genproto.sh script requires latest version, this confirms the test protoc to do the same.
This commit is contained in:
parent
fe2a9bd7e9
commit
b23ab1f759
@ -6,9 +6,9 @@ if ! [[ "$0" =~ "scripts/genproto.sh" ]]; then
|
||||
exit 255
|
||||
fi
|
||||
|
||||
# for now, be conservative about what version of protoc we expect
|
||||
if ! [[ $(protoc --version) =~ "3.7.1" ]]; then
|
||||
echo "could not find protoc 3.7.1, is it installed + in PATH?"
|
||||
# protoc version should be the same as one in main etcd scripts.
|
||||
if [[ $(protoc --version | cut -f2 -d' ') != "3.14.0" ]]; then
|
||||
echo "could not find protoc 3.14.0, is it installed + in PATH?"
|
||||
exit 255
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user