[PR #4593] [MERGED] Registry: an entry is a repository link and a page; versions come from its releases #5716

Closed
opened 2026-11-03 05:14:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4593
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: registry/entry-repo-releases


📝 Commits (2)

  • 4fabf20 Launcher: install registry files from a GitHub release asset
  • 85e7517 Registry: an entry is a link and a page; its versions are the repository's releases

📊 Changes

9 files changed (+591 additions, -82 deletions)

View changed files

📝 crates/cargo-horizon-mod/src/registry.rs (+71 -1)
📝 crates/horizon-mod-registry/src/lib.rs (+1 -0)
📝 crates/horizon-mods/src/index/registry.rs (+277 -24)
📝 crates/horizon-mods/src/index/registry/tests.rs (+98 -0)
📝 docs/api/mod-index.md (+68 -28)
📝 docs/mods.md (+30 -23)
📝 docs/native-mods.md (+6 -3)
📝 launcher/src/browser/download.rs (+24 -3)
📝 launcher/src/browser/tests.rs (+16 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

The format and tooling half of: the mod registry registers each mod's link and page; the mod's repo holds its versions, so an author never opens a registry PR to release (horizon-mods side: separate PR, the indexer).

What changes

  • horizon_mods::index::registry::Entry: optional repo = "owner/name"; name/summary/license/source and [[versions]] become optional. Existing entries parse and build unchanged (legacy versions keep working). A listed repo with no release yet is simply not in the index.
  • Page from the repo: horizon-registry.toml (name, summary, description, authors, license only; owners/key/kind/icon stay the registry's). The entry's own fields win.
  • Cache (versions/<id>.json): the page last read and the release versions that passed, as the index lists them. build merges them with legacy versions (newest first). Schema of index.json unchanged; file.url is then https://github.com/<owner>/<repo>/releases/download/<tag>/<name> (launcher side: #4589).
  • release_version: version/game/pins from the file's own manifest (tag fallback), sha256 computed, url built from the entry's repo (tag/name restricted to launcher-safe characters), signature required when the project has a key.
  • cargo horizon-mod registry release|page: used by the registry's sync script; review points out a new repo / changed repo.
  • Docs: docs/api/mod-index.md, docs/mods.md, docs/native-mods.md (says plainly: reviewed when listed, later releases checked by machine, revoked.toml takes one down). The form (service) change follows in its own PR.

Backwards compatible; no CODEOWNERS paths. Tests: cargo test -p horizon-mods --all-features (new: listing by repo, page, release version), cargo test -p cargo-horizon-mod, clippy -D warnings, fmt; the form service still builds and passes its tests.

🤖 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/4593 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `registry/entry-repo-releases` --- ### 📝 Commits (2) - [`4fabf20`](https://github.com/horizon-rust/horizon/commit/4fabf2025c788fb06ab514ca205a038f3692bacd) Launcher: install registry files from a GitHub release asset - [`85e7517`](https://github.com/horizon-rust/horizon/commit/85e7517b767ff370e73bc9e51836eec3aa8ca911) Registry: an entry is a link and a page; its versions are the repository's releases ### 📊 Changes **9 files changed** (+591 additions, -82 deletions) <details> <summary>View changed files</summary> 📝 `crates/cargo-horizon-mod/src/registry.rs` (+71 -1) 📝 `crates/horizon-mod-registry/src/lib.rs` (+1 -0) 📝 `crates/horizon-mods/src/index/registry.rs` (+277 -24) 📝 `crates/horizon-mods/src/index/registry/tests.rs` (+98 -0) 📝 `docs/api/mod-index.md` (+68 -28) 📝 `docs/mods.md` (+30 -23) 📝 `docs/native-mods.md` (+6 -3) 📝 `launcher/src/browser/download.rs` (+24 -3) 📝 `launcher/src/browser/tests.rs` (+16 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. The format and tooling half of: the mod registry registers each mod's link and page; the mod's repo holds its versions, so an author never opens a registry PR to release (horizon-mods side: separate PR, the indexer). ## What changes - `horizon_mods::index::registry::Entry`: optional `repo = "owner/name"`; `name/summary/license/source` and `[[versions]]` become optional. Existing entries parse and build unchanged (legacy versions keep working). A listed repo with no release yet is simply not in the index. - Page from the repo: `horizon-registry.toml` (name, summary, description, authors, license only; owners/key/kind/icon stay the registry's). The entry's own fields win. - `Cache` (`versions/<id>.json`): the page last read and the release versions that passed, as the index lists them. `build` merges them with legacy versions (newest first). Schema of `index.json` unchanged; `file.url` is then `https://github.com/<owner>/<repo>/releases/download/<tag>/<name>` (launcher side: #4589). - `release_version`: version/game/pins from the file's own manifest (tag fallback), sha256 computed, url built from the entry's repo (tag/name restricted to launcher-safe characters), signature required when the project has a key. - `cargo horizon-mod registry release|page`: used by the registry's sync script; `review` points out a new repo / changed repo. - Docs: `docs/api/mod-index.md`, `docs/mods.md`, `docs/native-mods.md` (says plainly: reviewed when listed, later releases checked by machine, `revoked.toml` takes one down). The form (service) change follows in its own PR. Backwards compatible; no CODEOWNERS paths. Tests: `cargo test -p horizon-mods --all-features` (new: listing by repo, page, release version), `cargo test -p cargo-horizon-mod`, clippy `-D warnings`, fmt; the form service still builds and passes its tests. 🤖 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 05:14:31 +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#5716
No description provided.