Skip to content

Commit

Permalink
chore: Fix protoc-gen-rs installation error
Browse files Browse the repository at this point in the history
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+
  • Loading branch information
varungandhi-src committed Dec 17, 2024
1 parent 87060a6 commit f192540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/proto-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f192540

Please sign in to comment.