Skip to content

Commit 1a6146e

Browse files
ytmimicalebcartwright
authored andcommitted
Pass --locked when installing rustfmt in integration tests
There was recently an issue where `cargo install` was installing a newer version of a dependency than the one listed in our Cargo.toml. The newer version added deprecation warnings that caused our continuous integration tests to break. As mentioned in the `cargo help install` docs, passing the `--locked` flag should force cargo to use the `Cargo.lock` file included with the repository.
1 parent 7b73b60 commit 1a6146e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ci/integration.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -ex
1515
# it again.
1616
#
1717
#which cargo-fmt || cargo install --force
18-
CFG_RELEASE=nightly CFG_RELEASE_CHANNEL=nightly cargo install --path . --force
18+
CFG_RELEASE=nightly CFG_RELEASE_CHANNEL=nightly cargo install --path . --force --locked
1919

2020
echo "Integration tests for: ${INTEGRATION}"
2121
cargo fmt -- --version

0 commit comments

Comments
 (0)