[PR #1646] [MERGED] Mod registry tools: the registry's entries, build and review #3657

Closed
opened 2026-11-03 04:11:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1646
Author: @ludovic111
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @ludovic111

Base: main ← Head: feat/mod-registry-tools


📝 Commits (3)

  • bffb68b Mod registry index: schema 1, .hpack and the checks before install
  • 59281c5 Mod registry: cargo horizon-mod check, each kind's own checks
  • 7d76923 Mod registry tools: the registry's entries, build and review

📊 Changes

21 files changed (+2500 additions, -13 deletions)

View changed files

📝 Cargo.lock (+9 -1)
📝 crates/cargo-horizon-mod/Cargo.toml (+2 -2)
➕ crates/cargo-horizon-mod/src/check.rs (+268 -0)
📝 crates/cargo-horizon-mod/src/main.rs (+40 -1)
➕ crates/cargo-horizon-mod/src/registry.rs (+159 -0)
📝 crates/horizon-mods/Cargo.toml (+5 -0)
➕ crates/horizon-mods/src/index.rs (+613 -0)
➕ crates/horizon-mods/src/index/registry.rs (+415 -0)
➕ crates/horizon-mods/src/index/registry/tests.rs (+237 -0)
➕ crates/horizon-mods/src/index/tests.rs (+165 -0)
📝 crates/horizon-mods/src/lib.rs (+3 -0)
📝 crates/horizon-mods/src/manifest.rs (+6 -3)
➕ crates/horizon-mods/src/modpack.rs (+299 -0)
📝 crates/horizon-mods/src/runtime.rs (+1 -4)
➕ crates/horizon-mods/tests/index/coords_hud-0.1.0.hmod (+0 -0)
➕ crates/horizon-mods/tests/index/coords_hud-0.1.0.hmod.minisig (+4 -0)
➕ crates/horizon-mods/tests/index/cozy-1.0.0.hpack (+0 -0)
➕ crates/horizon-mods/tests/index/index-v1.json (+109 -0)
➕ crates/horizon-mods/tests/index/test.pub (+2 -0)
➕ docs/api/mod-index.md (+148 -0)

...and 1 more files

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Stacked on #1642 (cargo horizon-mod check and each kind's checks); review #1634 and #1642 first.

What

The registry repository's own tools, which its CI runs on every pull request and on main.

  • horizon_mods::index::registry: the registry repository's mods/<id>.toml (unknown keys refused) and revoked.toml; build checks every entry and file, lists every problem, and writes the index with release URLs <id>-<version>/<file>; review compares a pull request with main: a published file never changes or disappears (take it down in revoked.toml), a kind never changes, and changes by a non-owner, to owners or to a key are pointed out. Shader submissions are closed (index::open, from #1642); the id submit is reserved for the site's /mods/submit.
  • cargo horizon-mod registry build|review|check|list for the registry's CI (the workflows that call them are in the seed of ludovic111/horizon-mods, not in this repo).
  • Docs: the registry repository's format and the commands in docs/api/mod-index.md.

Checked

  • cargo test -p horizon-mods --features index --lib: 25 pass; a registry checkout holding the sample's mod and modpack builds tests/index/index-v1.json exactly; every kind of problem is listed at once; reviews refuse changed and removed files.
  • The real coords-hud built with the SDK: the whole pipeline on the seed registry (registry list, a fetch, review, check, build) writes an index the launcher installs from (#1636, #1637).

pr_ready (tools/pr_ready.py --quick --base feat/mod-check on ludovics-mac-mini, against feat/mod-check at 59281c5c7, 4 min 29 s)

Check Result
Scope ⚠️ 7 files, +870 −2; 817 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (27 s)
clippy ✅ (1 min 35 s)
tests: cargo-horizon-mod, horizon-mods ✅ 42 passed (28 s)
doc tests ✅ 0 passed (1 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (3 s)
launcher clippy ✅ (1 s)
launcher tests ✅ 118 passed (5 s)
Parity ➖ no harness affected
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Over 500 lines of code (817, 237 of them tests): the entry format, build and review check one another and are the registry's whole CI, so they don't ship apart.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1646 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/mod-registry-tools` --- ### 📝 Commits (3) - [`bffb68b`](https://github.com/horizon-rust/horizon/commit/bffb68b0c59168f4354f9664023e18f4bed0b9f9) Mod registry index: schema 1, .hpack and the checks before install - [`59281c5`](https://github.com/horizon-rust/horizon/commit/59281c5c7357c8e8659c491f3312b3db229607c6) Mod registry: cargo horizon-mod check, each kind's own checks - [`7d76923`](https://github.com/horizon-rust/horizon/commit/7d76923a04fbbae783e56577a93465dceeab8bec) Mod registry tools: the registry's entries, build and review ### 📊 Changes **21 files changed** (+2500 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+9 -1) 📝 `crates/cargo-horizon-mod/Cargo.toml` (+2 -2) ➕ `crates/cargo-horizon-mod/src/check.rs` (+268 -0) 📝 `crates/cargo-horizon-mod/src/main.rs` (+40 -1) ➕ `crates/cargo-horizon-mod/src/registry.rs` (+159 -0) 📝 `crates/horizon-mods/Cargo.toml` (+5 -0) ➕ `crates/horizon-mods/src/index.rs` (+613 -0) ➕ `crates/horizon-mods/src/index/registry.rs` (+415 -0) ➕ `crates/horizon-mods/src/index/registry/tests.rs` (+237 -0) ➕ `crates/horizon-mods/src/index/tests.rs` (+165 -0) 📝 `crates/horizon-mods/src/lib.rs` (+3 -0) 📝 `crates/horizon-mods/src/manifest.rs` (+6 -3) ➕ `crates/horizon-mods/src/modpack.rs` (+299 -0) 📝 `crates/horizon-mods/src/runtime.rs` (+1 -4) ➕ `crates/horizon-mods/tests/index/coords_hud-0.1.0.hmod` (+0 -0) ➕ `crates/horizon-mods/tests/index/coords_hud-0.1.0.hmod.minisig` (+4 -0) ➕ `crates/horizon-mods/tests/index/cozy-1.0.0.hpack` (+0 -0) ➕ `crates/horizon-mods/tests/index/index-v1.json` (+109 -0) ➕ `crates/horizon-mods/tests/index/test.pub` (+2 -0) ➕ `docs/api/mod-index.md` (+148 -0) _...and 1 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #1642 (`cargo horizon-mod check` and each kind's checks); review #1634 and #1642 first. ## What The registry repository's own tools, which its CI runs on every pull request and on main. - `horizon_mods::index::registry`: the registry repository's `mods/<id>.toml` (unknown keys refused) and `revoked.toml`; `build` checks every entry and file, lists every problem, and writes the index with release URLs `<id>-<version>/<file>`; `review` compares a pull request with main: a published file never changes or disappears (take it down in `revoked.toml`), a kind never changes, and changes by a non-owner, to owners or to a key are pointed out. Shader submissions are closed (`index::open`, from #1642); the id `submit` is reserved for the site's `/mods/submit`. - `cargo horizon-mod registry build|review|check|list` for the registry's CI (the workflows that call them are in the seed of `ludovic111/horizon-mods`, not in this repo). - Docs: the registry repository's format and the commands in `docs/api/mod-index.md`. ## Checked - `cargo test -p horizon-mods --features index --lib`: 25 pass; a registry checkout holding the sample's mod and modpack builds `tests/index/index-v1.json` exactly; every kind of problem is listed at once; reviews refuse changed and removed files. - The real coords-hud built with the SDK: the whole pipeline on the seed registry (`registry list`, a fetch, `review`, `check`, `build`) writes an index the launcher installs from (#1636, #1637). **pr_ready** (`tools/pr_ready.py --quick --base feat/mod-check` on ludovics-mac-mini, against feat/mod-check at 59281c5c7, 4 min 29 s) | Check | Result | | --- | --- | | Scope | ⚠️ 7 files, +870 −2; 817 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (27 s) | | clippy | ✅ (1 min 35 s) | | tests: cargo-horizon-mod, horizon-mods | ✅ 42 passed (28 s) | | doc tests | ✅ 0 passed (1 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (3 s) | | launcher clippy | ✅ (1 s) | | launcher tests | ✅ 118 passed (5 s) | | Parity | ➖ no harness affected | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Over 500 lines of code (817, 237 of them tests): the entry format, `build` and `review` check one another and are the registry's whole CI, so they don't ship apart. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:11:13 +07:00
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#3657
No description provided.