[PR #7736] launcher: Forge and NeoForge loader kinds and their version lists #7792

Open
opened 2026-11-03 07:24:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7736
Author: @ludovic111
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: launcher-forge-versions


📝 Commits (1)

  • 898cf8d launcher: Forge and NeoForge loader kinds and their version lists

📊 Changes

11 files changed (+278 additions, -30 deletions)

View changed files

📝 docs/launcher-commands.md (+2 -2)
📝 launcher/src/cli.rs (+2 -2)
📝 launcher/src/loaders.rs (+45 -22)
➕ launcher/src/loaders/forge.rs (+129 -0)
➕ launcher/src/loaders/forge_tests.rs (+60 -0)
📝 launcher/src/loaders/tests.rs (+2 -1)
📝 launcher/src/other_launchers.rs (+1 -1)
📝 launcher/src/other_launchers/tests.rs (+5 -2)
➕ launcher/tests/fixtures/loaders/forge-maven-metadata.xml (+20 -0)
➕ launcher/tests/fixtures/loaders/forge-promotions_slim.json (+11 -0)
➕ launcher/tests/fixtures/loaders/neoforge-versions.json (+1 -0)

📄 Description

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

Part of #7733 (roadmap #3915). First of two stacked PRs; the next one (installer and launch) is based on this branch, and they should land together: alone, this one lists Forge and NeoForge but install answers "Horizon can't install Forge yet."

What changes

  • loaders::Kind gains Forge and NeoForge, plus Kind::ALL (the order a picker shows them), so the redesign's loader list picks them up from there.
  • Versions for a Minecraft version (loaders::versions, instance loader --list):
    • Forge: maven.minecraftforge.net/.../forge/maven-metadata.xml, named as players name them (47.3.0). Builds up to the recommended one in promotions_slim.json are stable, newer ones not, so the default pick is the recommended build. With no promotions, every build counts as stable.
    • NeoForge: maven.neoforged.net/api/maven/versions/releases/net/neoforged/neoforge, by the game version its numbers carry (21.1.x → 1.21.1, 21.0.x → 1.21, 26.3.0.x → 26.3), its forge artifact for 1.20.1. -beta builds are not stable; snapshots get none.
  • Prism/MultiMC imports now keep a Forge or NeoForge loader, at the version they had (other_launchers::loader).
  • CLI help and docs/launcher-commands.md name the four loaders.

Tests (launcher/src/loaders/forge_tests.rs): the lists are parsed from trimmed real responses saved in launcher/tests/fixtures/loaders/ (Forge metadata and promotions, NeoForge's list, all fetched 2026-11-02). The expected values were read off the real responses by hand. The import test now expects Forge 14.23.5.2860 to come along.

Licences: built from Forge's and NeoForge's public repository formats. No code from Prism, MultiMC or any other launcher was read.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 76d1cb530, 3 min 48 s)

Check Result
Scope ✅ 11 files, +278 −30
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (3 min 33 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (2 s)
launcher clippy ✅ (3 s)
launcher tests ✅ 454 passed (10 s)
Parity ➖ 18 affected, to run in CI (--quick): anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow_wind_charge, boat_authority, boat_paddle_reset, boat_submerged, dragon_contacts, dragon_render, enchantment_components, fishing_hook_entities, inline_object and 6 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Launcher workspace: cargo clippy --all-targets -D warnings clean, cargo test: 454 + 76 passed.

🤖 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/7736 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `launcher-forge-versions` --- ### 📝 Commits (1) - [`898cf8d`](https://github.com/horizon-rust/horizon/commit/898cf8d52e617b924486cf6aea2cd6bc2ce1ebd0) launcher: Forge and NeoForge loader kinds and their version lists ### 📊 Changes **11 files changed** (+278 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `docs/launcher-commands.md` (+2 -2) 📝 `launcher/src/cli.rs` (+2 -2) 📝 `launcher/src/loaders.rs` (+45 -22) ➕ `launcher/src/loaders/forge.rs` (+129 -0) ➕ `launcher/src/loaders/forge_tests.rs` (+60 -0) 📝 `launcher/src/loaders/tests.rs` (+2 -1) 📝 `launcher/src/other_launchers.rs` (+1 -1) 📝 `launcher/src/other_launchers/tests.rs` (+5 -2) ➕ `launcher/tests/fixtures/loaders/forge-maven-metadata.xml` (+20 -0) ➕ `launcher/tests/fixtures/loaders/forge-promotions_slim.json` (+11 -0) ➕ `launcher/tests/fixtures/loaders/neoforge-versions.json` (+1 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Part of #7733 (roadmap #3915). First of two stacked PRs; the next one (installer and launch) is based on this branch, and they should land together: alone, this one lists Forge and NeoForge but `install` answers "Horizon can't install Forge yet." **What changes** - `loaders::Kind` gains `Forge` and `NeoForge`, plus `Kind::ALL` (the order a picker shows them), so the redesign's loader list picks them up from there. - Versions for a Minecraft version (`loaders::versions`, `instance loader --list`): - Forge: `maven.minecraftforge.net/.../forge/maven-metadata.xml`, named as players name them (`47.3.0`). Builds up to the `recommended` one in `promotions_slim.json` are stable, newer ones not, so the default pick is the recommended build. With no promotions, every build counts as stable. - NeoForge: `maven.neoforged.net/api/maven/versions/releases/net/neoforged/neoforge`, by the game version its numbers carry (`21.1.x` → 1.21.1, `21.0.x` → 1.21, `26.3.0.x` → 26.3), its `forge` artifact for 1.20.1. `-beta` builds are not stable; snapshots get none. - Prism/MultiMC imports now keep a Forge or NeoForge loader, at the version they had (`other_launchers::loader`). - CLI help and `docs/launcher-commands.md` name the four loaders. **Tests** (`launcher/src/loaders/forge_tests.rs`): the lists are parsed from trimmed real responses saved in `launcher/tests/fixtures/loaders/` (Forge metadata and promotions, NeoForge's list, all fetched 2026-11-02). The expected values were read off the real responses by hand. The import test now expects Forge 14.23.5.2860 to come along. **Licences**: built from Forge's and NeoForge's public repository formats. No code from Prism, MultiMC or any other launcher was read. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 76d1cb530, 3 min 48 s) | Check | Result | | --- | --- | | Scope | ✅ 11 files, +278 −30 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (3 min 33 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (2 s) | | launcher clippy | ✅ (3 s) | | launcher tests | ✅ 454 passed (10 s) | | Parity | ➖ 18 affected, to run in CI (--quick): anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow_wind_charge, boat_authority, boat_paddle_reset, boat_submerged, dragon_contacts, dragon_render, enchantment_components, fishing_hook_entities, inline_object and 6 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Launcher workspace: `cargo clippy --all-targets -D warnings` clean, `cargo test`: 454 + 76 passed. 🤖 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>
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#7792
No description provided.