This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new fa67ac1be chore(rust): update lock file (#2594)
fa67ac1be is described below

commit fa67ac1bebb11350b19d923b957361a633618598
Author: Matthijs Brobbel <[email protected]>
AuthorDate: Mon Mar 10 11:14:43 2025 +0100

    chore(rust): update lock file (#2594)
    
    The lock file needs to be updated after bumping the crate versions. This
    also adds `--locked` to CI to make sure the checked-in lock file is
    updated.
---
 .github/workflows/rust.yml   | 2 +-
 dev/release/utils-prepare.sh | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 3f43cdc72..89ada9b87 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -122,7 +122,7 @@ jobs:
       - name: Clippy
         run: |
           pushd rust
-          cargo clippy --workspace --all-targets --all-features -- -Dwarnings
+          cargo clippy --workspace --all-targets --all-features --locked -- 
-Dwarnings
           popd
       - name: Test
         run: |
diff --git a/dev/release/utils-prepare.sh b/dev/release/utils-prepare.sh
index cb65be236..7cb8f4f3a 100644
--- a/dev/release/utils-prepare.sh
+++ b/dev/release/utils-prepare.sh
@@ -125,6 +125,9 @@ update_versions() {
     "${ADBC_DIR}/rust/Cargo.toml"
   rm "${ADBC_DIR}/rust/Cargo.toml.bak"
   git add "${ADBC_DIR}/rust/Cargo.toml"
+  # Update Cargo.lock file
+  cargo check --manifest-path "${ADBC_DIR}/rust/Cargo.toml"
+  git add "${ADBC_DIR}/rust/Cargo.lock"
 
   if [ ${type} = "release" ]; then
     pushd "${ADBC_DIR}/ci/linux-packages"

Reply via email to