Skip to content

Commit

Permalink
Add remediation to CI error message for uncommited Cargo.lock changes (
Browse files Browse the repository at this point in the history
…solana-labs#28147)

* Add remediation to CI error message for uncommited Cargo.lock changes
Co-authored-by: Trent Nelson <[email protected]>
  • Loading branch information
willhickey authored Oct 4, 2022
1 parent fd11e26 commit 1359f2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ci/test-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ scripts/increment-cargo-version.sh check
_ scripts/cargo-for-all-lock-files.sh tree >/dev/null
set +e
if ! _ git diff --exit-code; then
echo -e "\nError: Uncommitted Cargo.lock changes" 1>&2
cat <<EOF 1>&2
Error: Uncommitted Cargo.lock changes.
Run './scripts/cargo-for-all-lock-files.sh tree' and commit the result.
EOF
exit 1
fi
)
Expand Down

0 comments on commit 1359f2c

Please sign in to comment.