require protobuf version match that of top-level Cargo.toml

When compiling unit tests in the pre-cq, the Cargo.lock file is deleted.
Testing a sub-crate without a lock file will cause the protobuf
dependency to resolve to the latest version of protobuf, which varies
based on whatever other cros-rust.eclass based ebuilds have been run
beforehand. This change fixes that source of flake.

BUG=None
TEST=pre-cq

Change-Id: Ief951391c08b0f0cc9ff035437824d89860455e2
Reviewed-on: https://chromium-review.googlesource.com/1534962
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
This commit is contained in:
Zach Reizner 2019-03-21 14:50:37 -07:00 committed by chrome-bot
parent 3a42190cc4
commit 99d4a18b5d
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ authors = ["The Chromium OS Authors"]
crate-type = ["cdylib"]
[dependencies]
protobuf = "*"
protobuf = "=1.4.3"
plugin_proto = { path = "../plugin_proto" }
sys_util = { path = "../sys_util" }
kvm = { path = "../kvm" }

View file

@ -5,7 +5,7 @@ authors = ["The Chromium OS Authors"]
build = "build.rs"
[dependencies]
protobuf = "*"
protobuf = "=1.4.3"
kvm_sys = { path = "../kvm_sys" }
[build-dependencies]