ci: disallow uncommitted Cargo.lock changes
This commit is contained in:
parent
3c1dd891af
commit
15e1314209
|
@ -12,6 +12,16 @@ cargo="$(readlink -f "./cargo")"
|
|||
|
||||
scripts/increment-cargo-version.sh check
|
||||
|
||||
# Disallow uncommitted Cargo.lock changes
|
||||
(
|
||||
_ scripts/cargo-for-all-lock-files.sh tree
|
||||
set +e
|
||||
if ! _ git diff --exit-code; then
|
||||
echo -e "\nError: Uncommitted Cargo.lock changes" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
)
|
||||
|
||||
echo --- build environment
|
||||
(
|
||||
set -x
|
||||
|
|
Loading…
Reference in New Issue