From: Jason Ish Date: Mon, 10 Feb 2025 19:47:57 +0000 (-0600) Subject: github-ci: add check for update to date Cargo.lock.in X-Git-Tag: suricata-8.0.0-beta1~352 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357822c68c02d7d1cd50df92153638f80f41ef75;p=thirdparty%2Fsuricata.git github-ci: add check for update to date Cargo.lock.in After a build, check if Cargo.lock.in and Cargo.lock differ, if so, Cargo.lock.in needs an update as part of a depedency update. --- diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3571edd6a4..5c05ccadb1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -95,3 +95,12 @@ jobs: # especially without debug feature - run: cargo clippy working-directory: rust + - name: Check if Cargo.lock.in is up to date + run: | + cp rust/Cargo.lock rust/Cargo.lock.in + diff=$(git diff rust/Cargo.lock.in) + if [ "${diff}" ]; then + echo "${diff}" + echo "::error ::Cargo.lock.in needs to be updated" + exit 1 + fi