cargo-lock-manager

Update Cargo.lock files and resolve --locked flag issues in CI/CD.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/TrollHeap/dotfiles --skill cargo-lock-manager-trollheap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cargo-lock-manager
Source: https://github.com/TrollHeap/dotfiles/tree/main/ai-config/.claude/templates/tauri-solidjs/.claude/skills/cargo-lock-manager
Command: npx skills add https://github.com/TrollHeap/dotfiles --skill cargo-lock-manager-trollheap

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cargo, git, and includes scripts (resource) components.

What problem does it solve?

Manages Cargo.lock file updates and resolves --locked flag issues in CI/CD, preventing frequent CI failures caused by out-of-date lock files and missing lock commits.

Core Features & Use Cases

  • Check Cargo.lock status and identify drift in workspace members.
  • Update Cargo.lock across the workspace and re-run checks to ensure reproducible builds.
  • Apply fixes in PRs or local development to align dependencies with the workspace configuration.

Quick Start

Update the workspace Cargo.lock and commit the changes to ensure CI/CD pipelines pass.

Frequently Asked Questions about cargo-lock-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does cargo check fail with the --locked flag in CI/CD pipelines?

The --locked flag fails in CI/CD when Cargo.lock drifts from your workspace dependencies. This Skill identifies the drift, updates the lockfile, and commits changes to ensure pipelines pass.

How do I update Cargo.lock across a Rust workspace?

Update Cargo.lock across a workspace by running cargo update to align dependencies. This Skill automates the update process, re-runs checks to verify reproducibility, and commits the lockfile changes.

Do I need git installed to fix Cargo.lock issues in my pipeline?

Yes, git is required alongside cargo to resolve lockfile issues. This Skill uses git to commit Cargo.lock updates directly to your repository, ensuring CI/CD pipelines and PR workflows stay synchronized.

What is the best way to prevent CI failures from missing lock commits?

The best way to prevent CI failures from missing lock commits is to check Cargo.lock status for workspace drift and commit updates before pipeline execution. This Skill aligns dependencies and applies fixes directly in PRs.

Can I use this to resolve dependency drift in local development?

Yes, you can resolve dependency drift in local development. It checks workspace member status, applies cargo update fixes, and runs locked checks to ensure your local environment matches the CI/CD configuration.