Skip to content

Update: enforce Cargo.lock in CI with --locked - #459

Merged
0xLeif merged 1 commit into
mainfrom
fix/450-ci-locked
Jul 2, 2026
Merged

Update: enforce Cargo.lock in CI with --locked#459
0xLeif merged 1 commit into
mainfrom
fix/450-ci-locked

Conversation

@0xLeif

@0xLeif 0xLeif commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Now that Cargo.lock is committed (Fix: bump wasmtime to 46.0.1 (RUSTSEC-2026-0188) + commit Cargo.lock (H-6)Β #436), make CI enforce it by adding --locked to the cargo build/test invocations.
  • .github/workflows/ci.yml: cargo test --verbose --locked (test job) and cargo build --release --locked (integration job).
  • .github/workflows/release.yml: cargo test --verbose --locked (test gate) and cargo build --release --target ... --locked (both cross and native build steps).
  • Deliberately left untouched: the audit job (rustsec/audit-check manages its own lockfile via cargo generate-lockfile) and cargo fmt/cargo clippy steps.

Closes #450

Test Plan

  • YAML validated as well-formed (yaml.safe_load on both files).
  • Diff is minimal: 5 insertions, 5 deletions across the two workflow files.
  • CI runs --locked on the PR; a stale Cargo.lock would now fail the build/test steps.

https://claude.ai/code/session_016AvsKakjAc3EKN2ztcMfYi

Now that Cargo.lock is committed (#436), add --locked to the cargo
build/test invocations in ci.yml and release.yml so CI fails if the
lockfile is stale or drifts. Leaves the audit job's own
generate-lockfile step untouched.

Closes #450

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016AvsKakjAc3EKN2ztcMfYi
@0xLeif
0xLeif requested a review from a team as a code owner July 2, 2026 15:05
@0xLeif
0xLeif requested review from 0xGaspar, Kyntrin and tofu-ux July 2, 2026 15:05
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@0xGaspar 0xGaspar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right call now that Cargo.lock is committed β€” --locked makes a stale lockfile fail loudly. Good judgment leaving audit alone (rustsec regenerates its own lockfile) and skipping fmt/clippy where it's a no-op. LGTM.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

βœ… Corvin says...

      _
    <(^\  .oO(Caw! ^v^)
     |/(\
      \(\\
      " "\\

"That's a nice looking export you've got there."

CI Summary

Check Status
Dependency Audit βœ… Passed
Integration (3 OS) βœ… Passed
Lint (fmt + clippy) βœ… Passed
Spec Validation βœ… Passed
Tests (3 OS) βœ… Passed

Powered by corvid-pet

@0xLeif
0xLeif merged commit 2592bc8 into main Jul 2, 2026
13 checks passed
@0xLeif
0xLeif deleted the fix/450-ci-locked branch July 2, 2026 15:48
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.

CI: enforce the committed lockfile with --locked

2 participants