Skip to content

hotfix: add cap to clap_lex version and install with --locked flag#26

Merged
martinabeleda merged 1 commit intomainfrom
hotfix/fix-clap-lex-lock
Mar 19, 2026
Merged

hotfix: add cap to clap_lex version and install with --locked flag#26
martinabeleda merged 1 commit intomainfrom
hotfix/fix-clap-lex-lock

Conversation

@martinabeleda
Copy link
Owner

@martinabeleda martinabeleda commented Mar 19, 2026

Fixes #27

cargo install ripdiff doesn't use the lockfile, so Cargo resolves clap_lex to 1.1.0 which requires Rust edition 2024. Users with Cargo older than Rust 1.85 can't parse this dependency.

Changes made:

  1. Cargo.toml — Added clap_lex = ">= 1.0.0, < 1.1.0" as a direct dependency to cap the version and prevent resolution to the edition-2024 version.
  2. README.md — Changed install command to cargo install --locked ripdiff so the published lockfile is respected, preventing unexpected dependency upgrades.

The --locked flag is the most robust fix since it ensures the exact tested dependency versions are used. The clap_lex cap is a belt-and-suspenders safeguard for users who forget --locked.

@martinabeleda martinabeleda merged commit a0967a4 into main Mar 19, 2026
4 checks passed
@martinabeleda martinabeleda deleted the hotfix/fix-clap-lex-lock branch March 19, 2026 01:17
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.

Failed to compile ripdiff v0.4.0

1 participant