[PR #1636] [MERGED] Launcher: Horizon's registry as a mod browser source #3651

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

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-horizon-source


📝 Commits (2)

  • 7e513d2 Launcher: Horizon's registry as a mod browser source
  • de19575 Merge origin/main into feat/launcher-horizon-source

📊 Changes

11 files changed (+423 additions, -18 deletions)

View changed files

📝 launcher/Cargo.lock (+9 -0)
📝 launcher/Cargo.toml (+2 -0)
📝 launcher/src/browser.rs (+32 -8)
📝 launcher/src/browser/curseforge.rs (+1 -0)
📝 launcher/src/browser/download.rs (+32 -9)
➕ launcher/src/browser/horizon.rs (+280 -0)
➕ launcher/src/browser/horizon/tests.rs (+61 -0)
📝 launcher/src/browser/installed/tests.rs (+1 -0)
📝 launcher/src/browser/java.rs (+1 -0)
📝 launcher/src/browser/modrinth.rs (+1 -0)
📝 launcher/src/browser/tests.rs (+3 -1)

📄 Description

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

Stacked on #1634 (the index). First of two launcher PRs (the next, #1637, installs and adds the CLI); split to stay under ~500 lines.

What

Horizon's registry as a source of the launcher's mod browser, beside Modrinth (launcher/src/browser/horizon.rs). Nothing shows it yet: the CLI comes in #1637 and the Mods page in #1638.

  • The index: fetched at most every ten minutes, kept in mod-browser/horizon-index.json in the game folder for when the registry can't be reached; HORIZON_MOD_INDEX=<file or https address> reads a test registry, whose files may then be on disk (file://).
  • Search by kind and words, for this game unless "everything". Modpacks, shader packs and kinds newer than this launcher are not offered.
  • Versions carry the index's SHA-256. A version the index says was taken down is blocked with its reason.
  • support and pick know registry versions: they run when made for the game Horizon plays.
  • Downloads accept SHA-256 beside SHA-512 and SHA-1, and the registry's release host beside Modrinth's and CurseForge's.

Adapted to #1576 (virtualized mod lists): this PR doesn't touch the Mods page.

Checked

  • Launcher tests: 120 pass in the lib (2 new: search by kind and words, registry versions run when made for this game), 33 in the bin; clippy -D warnings clean.

pr_ready (tools/pr_ready.py --quick --base feat/mod-index on ludovics-mac-mini, against feat/mod-index at bffb68b0c, 1 min 38 s)

Check Result
Scope ✅ 11 files, +423 −18
Cargo.lock ✅ changes with a Cargo.toml
Public tree ✅
Python tests ➖ no Python change
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (2 s)
launcher clippy ✅ (14 s)
launcher tests ✅ 120 passed (24 s)
Parity ➖ no harness affected
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/1636 **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/launcher-horizon-source` --- ### 📝 Commits (2) - [`7e513d2`](https://github.com/horizon-rust/horizon/commit/7e513d2d5c85eefdf4b23d3e1295699e45cc4886) Launcher: Horizon's registry as a mod browser source - [`de19575`](https://github.com/horizon-rust/horizon/commit/de195755f7d798f50677b60caacdf021e908d017) Merge origin/main into feat/launcher-horizon-source ### 📊 Changes **11 files changed** (+423 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `launcher/Cargo.lock` (+9 -0) 📝 `launcher/Cargo.toml` (+2 -0) 📝 `launcher/src/browser.rs` (+32 -8) 📝 `launcher/src/browser/curseforge.rs` (+1 -0) 📝 `launcher/src/browser/download.rs` (+32 -9) ➕ `launcher/src/browser/horizon.rs` (+280 -0) ➕ `launcher/src/browser/horizon/tests.rs` (+61 -0) 📝 `launcher/src/browser/installed/tests.rs` (+1 -0) 📝 `launcher/src/browser/java.rs` (+1 -0) 📝 `launcher/src/browser/modrinth.rs` (+1 -0) 📝 `launcher/src/browser/tests.rs` (+3 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #1634 (the index). First of two launcher PRs (the next, #1637, installs and adds the CLI); split to stay under ~500 lines. ## What Horizon's registry as a source of the launcher's mod browser, beside Modrinth (`launcher/src/browser/horizon.rs`). Nothing shows it yet: the CLI comes in #1637 and the Mods page in #1638. - The index: fetched at most every ten minutes, kept in `mod-browser/horizon-index.json` in the game folder for when the registry can't be reached; `HORIZON_MOD_INDEX=<file or https address>` reads a test registry, whose files may then be on disk (`file://`). - Search by kind and words, for this game unless "everything". Modpacks, shader packs and kinds newer than this launcher are not offered. - Versions carry the index's SHA-256. A version the index says was taken down is blocked with its reason. - `support` and `pick` know registry versions: they run when made for the game Horizon plays. - Downloads accept SHA-256 beside SHA-512 and SHA-1, and the registry's release host beside Modrinth's and CurseForge's. Adapted to #1576 (virtualized mod lists): this PR doesn't touch the Mods page. ## Checked - Launcher tests: 120 pass in the lib (2 new: search by kind and words, registry versions run when made for this game), 33 in the bin; clippy `-D warnings` clean. **pr_ready** (`tools/pr_ready.py --quick --base feat/mod-index` on ludovics-mac-mini, against feat/mod-index at bffb68b0c, 1 min 38 s) | Check | Result | | --- | --- | | Scope | ✅ 11 files, +423 −18 | | Cargo.lock | ✅ changes with a Cargo.toml | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (2 s) | | launcher clippy | ✅ (14 s) | | launcher tests | ✅ 120 passed (24 s) | | Parity | ➖ no harness affected | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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:10 +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#3651
No description provided.