[PR #3619] [MERGED] Launcher: Fabric and Quilt for Java instances #5096

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

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-fabric-quilt


📝 Commits (2)

  • c5702d6 Launcher: Fabric and Quilt for Java instances
  • 184e1ee Launcher: refuse a version whose inheritsFrom loops

📊 Changes

9 files changed (+557 additions, -13 deletions)

View changed files

📝 docs/launcher-commands.md (+14 -0)
📝 launcher/src/backend.rs (+36 -10)
📝 launcher/src/cli.rs (+73 -2)
📝 launcher/src/instances.rs (+3 -0)
📝 launcher/src/java_launch.rs (+11 -1)
📝 launcher/src/java_launch/tests.rs (+24 -0)
📝 launcher/src/lib.rs (+1 -0)
➕ launcher/src/loaders.rs (+234 -0)
➕ launcher/src/loaders/tests.rs (+161 -0)

📄 Description

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

Java Edition instances can now run Fabric or Quilt.

  • loaders.rs: lists loader versions from Fabric's and Quilt's public metadata services (meta.fabricmc.net/v2, meta.quiltmc.org/v3), newest first, with stable versions marked. Quilt's list comes unordered, so it is sorted.
  • Installing a loader writes its launcher profile to versions/<id>/<id>.json and downloads its libraries, each checked against the profile's sha1 or the published .sha1.
  • JavaGame.loader: Play installs the loader once, then starts the profile, which is merged over the game's version through inheritsFrom (#3600).
  • java_launch::resolve now refuses an inheritsFrom loop (a version inheriting from itself, or A→B→A) with {id}: inheritsFrom loops, instead of overflowing the stack. Test: a_version_that_inherits_from_itself_is_refused.
  • CLI:
    • instance create --minecraft <v> --loader fabric|quilt [--loader-version]
    • instance loader <instance> <fabric|quilt|none> [version]
  • The owner gate is unchanged: the game's files still download only for an account that owns Java Edition.

Checks:

  • The ignored live test installs real Fabric 0.20.1 and Quilt 0.30.1 into a temp folder, and it passes.
  • CLI in a scratch home: create Fabric and Quilt 1.21.1 instances, then switch one's loader.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 0b74b68aa, 2 min 31 s)

Check Result
Scope ⚠️ 9 files, +557 −13; 556 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 408 passed (2 min 22 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (2 s)
launcher clippy ✅ (1 s)
launcher tests ✅ 258 passed (4 s)
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
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/3619 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-fabric-quilt` --- ### 📝 Commits (2) - [`c5702d6`](https://github.com/horizon-rust/horizon/commit/c5702d6c295e4fca166a5649f85a1e09b7431759) Launcher: Fabric and Quilt for Java instances - [`184e1ee`](https://github.com/horizon-rust/horizon/commit/184e1ee3d68d5fdffa7839b9e3fc2407cff438aa) Launcher: refuse a version whose inheritsFrom loops ### 📊 Changes **9 files changed** (+557 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `docs/launcher-commands.md` (+14 -0) 📝 `launcher/src/backend.rs` (+36 -10) 📝 `launcher/src/cli.rs` (+73 -2) 📝 `launcher/src/instances.rs` (+3 -0) 📝 `launcher/src/java_launch.rs` (+11 -1) 📝 `launcher/src/java_launch/tests.rs` (+24 -0) 📝 `launcher/src/lib.rs` (+1 -0) ➕ `launcher/src/loaders.rs` (+234 -0) ➕ `launcher/src/loaders/tests.rs` (+161 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Java Edition instances can now run Fabric or Quilt. - `loaders.rs`: lists loader versions from Fabric's and Quilt's public metadata services (`meta.fabricmc.net/v2`, `meta.quiltmc.org/v3`), newest first, with stable versions marked. Quilt's list comes unordered, so it is sorted. - Installing a loader writes its launcher profile to `versions/<id>/<id>.json` and downloads its libraries, each checked against the profile's sha1 or the published `.sha1`. - `JavaGame.loader`: Play installs the loader once, then starts the profile, which is merged over the game's version through `inheritsFrom` (#3600). - `java_launch::resolve` now refuses an `inheritsFrom` loop (a version inheriting from itself, or A→B→A) with `{id}: inheritsFrom loops`, instead of overflowing the stack. Test: `a_version_that_inherits_from_itself_is_refused`. - CLI: - `instance create --minecraft <v> --loader fabric|quilt [--loader-version]` - `instance loader <instance> <fabric|quilt|none> [version]` - The owner gate is unchanged: the game's files still download only for an account that owns Java Edition. Checks: - The ignored live test installs real Fabric 0.20.1 and Quilt 0.30.1 into a temp folder, and it passes. - CLI in a scratch home: create Fabric and Quilt 1.21.1 instances, then switch one's loader. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 0b74b68aa, 2 min 31 s) | Check | Result | | --- | --- | | Scope | ⚠️ 9 files, +557 −13; 556 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 408 passed (2 min 22 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (2 s) | | launcher clippy | ✅ (1 s) | | launcher tests | ✅ 258 passed (4 s) | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | 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 05:10:12 +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#5096
No description provided.