You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Catch a Cargo.toml change that wasn't reflected in the matching Cargo.lock.
# Runs fully offline (`--frozen` = `--locked` + `--offline`) and does not compile,
# so it stays fast. Checks all three lockfiles since a workspace dep change can
# touch the excluded python/ and java/ locks too.
- repo: local
hooks:
- id: cargo-lock-sync
name: Cargo.lock in sync with Cargo.toml (offline)
entry: bash -c 'for m in Cargo.toml python/Cargo.toml java/lance-jni/Cargo.toml; do cargo metadata --frozen --format-version 1 --manifest-path "$m" >/dev/null 2>&1 || { echo "Cargo.lock is out of date for $m. Refresh it (e.g. cargo check --manifest-path $m) and commit the updated lockfile."; exit 1; }; done'