Add remediation to CI error message for uncommited Cargo.lock changes (#28147)
* Add remediation to CI error message for uncommited Cargo.lock changes Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
This commit is contained in:
parent
fd11e261dd
commit
1359f2cea7
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue