From f192540c08d46cccfa58aaecc499823df5a54119 Mon Sep 17 00:00:00 2001 From: Varun Gandhi Date: Tue, 17 Dec 2024 15:17:59 +0530 Subject: [PATCH] chore: Fix protoc-gen-rs installation error I'm not 100% sure as to why --locked works given that there is no Cargo.lock either at the root of this repo or in the rust-protobuf repo, but it seems to fix the installation error where a dependency 'home v0.5.11' gets picked up which ends up requiring Rust 1.81+ --- dev/proto-generate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/proto-generate.sh b/dev/proto-generate.sh index bf6ee05f..3791a4dd 100755 --- a/dev/proto-generate.sh +++ b/dev/proto-generate.sh @@ -12,7 +12,7 @@ PROTOC_GEN_RUST_VERSION="$(cat bindings/rust/Cargo.toml | grep 'protobuf =' | se if ! grep -q "$PROTOC_GEN_RUST_VERSION" "./.bin/PROTOC_GEN_RUST_VERSION" \ || ! test -f "./.bin/bin/protoc-gen-rs"; then rm -rf .bin - cargo install --root .bin protobuf-codegen --version 3.7.1 + cargo install --root .bin protobuf-codegen --version 3.7.1 --locked echo "$PROTOC_GEN_RUST_VERSION" > "./.bin/PROTOC_GEN_RUST_VERSION" fi