Skip to content

Commit bf6c58b

Browse files
pin cargo-rdme for deterministic lint
1 parent fa29aff commit bf6c58b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

scripts/lint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ cargo clippy --workspace --all-features --all-targets -- -D warnings
1919

2020
# Check that READMEs are up-to-date with cargo-rdme
2121
echo "Checking READMEs are up-to-date..."
22-
if ! command -v cargo-rdme &> /dev/null; then
23-
cargo install --locked cargo-rdme
22+
CARGO_RDME_VERSION="1.5.0"
23+
if ! command -v cargo-rdme &> /dev/null ||
24+
[[ "$(cargo rdme --version)" != "cargo-rdme ${CARGO_RDME_VERSION}" ]]; then
25+
cargo install --locked --version "$CARGO_RDME_VERSION" cargo-rdme
2426
fi
25-
cargo rdme install-rust-toolchain-for-intralinks
2627
for toml in $(find program-libs sdk-libs -name '.cargo-rdme.toml' -type f); do
2728
crate_dir=$(dirname "$toml")
2829
echo "Checking README in $crate_dir..."

0 commit comments

Comments
 (0)