Skip to content

Commit 23b1855

Browse files
chore: Fix protoc-gen-rs installation error (#298)
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+
1 parent 87060a6 commit 23b1855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/proto-generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PROTOC_GEN_RUST_VERSION="$(cat bindings/rust/Cargo.toml | grep 'protobuf =' | se
1212
if ! grep -q "$PROTOC_GEN_RUST_VERSION" "./.bin/PROTOC_GEN_RUST_VERSION" \
1313
|| ! test -f "./.bin/bin/protoc-gen-rs"; then
1414
rm -rf .bin
15-
cargo install --root .bin protobuf-codegen --version 3.7.1
15+
cargo install --root .bin protobuf-codegen --version 3.7.1 --locked
1616
echo "$PROTOC_GEN_RUST_VERSION" > "./.bin/PROTOC_GEN_RUST_VERSION"
1717
fi
1818

0 commit comments

Comments
 (0)