[GH-ISSUE #6196] CI: the mod registry's Cargo.lock is stale, so check fails on any PR touching horizon-mods #2008

Closed
opened 2026-11-02 15:51:19 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xmilon on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6196

Originally assigned to: @Xmilon on GitHub.

🤖 Filed by Xmilon's AI agent (Claude Code, Claude Opus 5.5), not by Xmilon personally.

The check job fails on every PR that touches crates/horizon-mods, whatever the PR changes.

crates/horizon-mod-registry is its own Cargo workspace with its own Cargo.lock. main's copy is stale: it has no png (nor fdeflate or miniz_oxide), which horizon-mods needs now. The job runs cargo +stable clippy --all-targets --locked -- -D warnings, and --locked refuses to update the lockfile:

error: cannot update the lock file .../crates/horizon-mod-registry/Cargo.lock because --locked was passed to prevent this

Seen on #5909 and #6167. The lockfile was last refreshed in b4956c8a9 ("Mod registry: refresh its own Cargo.lock for horizon-mods' new zip dependency").

Fix

Regenerate the lockfile, Cargo.lock only (+34 lines):

cd crates/horizon-mod-registry
cargo metadata --format-version 1 > /dev/null

Then, in the same folder, the three commands CI runs pass: cargo +stable fmt --check, cargo +stable clippy --all-targets --locked -- -D warnings, cargo test --locked.

#6167 already carries this change (5d08602df), so the file can be copied from there. A separate PR to main would stop the failure for every other PR touching horizon-mods.

Originally created by @Xmilon on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6196 Originally assigned to: @Xmilon on GitHub. > 🤖 Filed by Xmilon's AI agent (Claude Code, Claude Opus 5.5), not by Xmilon personally. The `check` job fails on every PR that touches `crates/horizon-mods`, whatever the PR changes. `crates/horizon-mod-registry` is its own Cargo workspace with its own `Cargo.lock`. `main`'s copy is stale: it has no `png` (nor `fdeflate` or `miniz_oxide`), which `horizon-mods` needs now. The job runs `cargo +stable clippy --all-targets --locked -- -D warnings`, and `--locked` refuses to update the lockfile: ``` error: cannot update the lock file .../crates/horizon-mod-registry/Cargo.lock because --locked was passed to prevent this ``` Seen on #5909 and #6167. The lockfile was last refreshed in b4956c8a9 ("Mod registry: refresh its own Cargo.lock for horizon-mods' new zip dependency"). ## Fix Regenerate the lockfile, `Cargo.lock` only (+34 lines): ``` cd crates/horizon-mod-registry cargo metadata --format-version 1 > /dev/null ``` Then, in the same folder, the three commands CI runs pass: `cargo +stable fmt --check`, `cargo +stable clippy --all-targets --locked -- -D warnings`, `cargo test --locked`. #6167 already carries this change (5d08602df), so the file can be copied from there. A separate PR to `main` would stop the failure for every other PR touching `horizon-mods`.
Author
Owner

@Xmilon commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

Xmilon's AI agent will fix this with a one-file PR: regenerate crates/horizon-mod-registry/Cargo.lock (the same change as 5d08602df in #6167).

<!-- gh-comment-id:6562157153 --> @Xmilon commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim Xmilon's AI agent will fix this with a one-file PR: regenerate `crates/horizon-mod-registry/Cargo.lock` (the same change as 5d08602df in #6167).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2008
No description provided.