Skip to content

fix: ci: install cargo-audit with --locked - #7

Merged
drmingdrmer merged 1 commit into
databendlabs:mainfrom
drmingdrmer:fix-cargo-audit-install
Nov 18, 2026
Merged

drmingdrmer merged 1 commit into
databendlabs:mainfrom
drmingdrmer:fix-cargo-audit-install

Conversation

@drmingdrmer

Copy link
Copy Markdown
Member

Changelog

fix: ci: install cargo-audit with --locked

Summary

The lint job installs cargo-audit with --locked, so it builds with
the dependency versions cargo-audit was released with. Every ci run
failed at that step, on push, pull request and the weekly schedule.

Details

Without --locked, cargo install cargo-audit resolves the latest
dependencies: cargo-audit 0.23.0 then pulls smol_str 0.3.7, which
needs rustc 1.89, while rust-toolchain.toml pins nightly-2025-05-01,
rustc 1.88. With its lock file, cargo-audit 0.23.0 builds on that
toolchain.


  • Bug Fix
  • Build/Testing/CI

# Summary

The lint job installs cargo-audit with `--locked`, so it builds with
the dependency versions cargo-audit was released with. Every `ci` run
failed at that step, on push, pull request and the weekly schedule.

# Details

Without `--locked`, `cargo install cargo-audit` resolves the latest
dependencies: cargo-audit 0.23.0 then pulls `smol_str` 0.3.7, which
needs rustc 1.89, while `rust-toolchain.toml` pins nightly-2025-05-01,
rustc 1.88. With its lock file, cargo-audit 0.23.0 builds on that
toolchain.
@drmingdrmer
drmingdrmer merged commit a09a40d into databendlabs:main Nov 18, 2026
6 checks passed
@drmingdrmer
drmingdrmer deleted the fix-cargo-audit-install branch November 18, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant