[PR #3105] [MERGED] Launcher: tell a prepared version without the language list by pack.mcmeta #4805

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

📋 Pull Request Information

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

Base: main ← Head: fix/language-list-check


📝 Commits (1)

  • abdff5c Launcher: tell a prepared version without the language list by pack.mcmeta

📊 Changes

1 file changed (+8 additions, -2 deletions)

View changed files

📝 launcher/src/backend.rs (+8 -2)

📄 Description

## What and why

lacks_languages counted the files in assets/minecraft/lang and took one or none for "English alone". The client jar carries two there, en_us.json and deprecated.json, so a real prepared version never counted as lacking and the languages #1594 copies from the asset store were never added to a version prepared before it (or by a preparer that could not read the store). The test's fixture held en_us.json alone, which hid it.

The list the language screen offers, pack.mcmeta, is only in the asset index, so its absence is what says the languages are missing. The fixture now has deprecated.json too, so the existing completion test fails on the old check.

Found on a real install: a prepared 26.3 with lang/ holding en_us.json and deprecated.json, no pack.mcmeta, and only English in the language screen. Together with #3106 (the asset store itself was incomplete there) it gets the install to ru_ru.

Vanilla reference

none (launcher).

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main, Windows, against upstream/main at b6c936f82)

Check Result
Scope ✅ 1 files, +8 −2
Cargo.lock ✅ unchanged
Public tree ✅
launcher rustfmt ✅
launcher clippy ✅
launcher tests ✅ 197 passed
Parity ➖ not run (--quick)
Python tests ❌ on my machine: python3 there is the Microsoft Store stub, so the pre-push hook, roadmap and javac tests fail (2 failures, 7 errors). Not run against a clean main; CI's verify has the real answer.

Screenshots

n/a

🤖 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/3105 **Author:** [@malordin](https://github.com/malordin) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/language-list-check` --- ### 📝 Commits (1) - [`abdff5c`](https://github.com/horizon-rust/horizon/commit/abdff5c89d8686bd5b1dc75b41aff8a1a40b85ed) Launcher: tell a prepared version without the language list by pack.mcmeta ### 📊 Changes **1 file changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/backend.rs` (+8 -2) </details> ### 📄 Description ## What and why `lacks_languages` counted the files in `assets/minecraft/lang` and took one or none for "English alone". The client jar carries two there, `en_us.json` and `deprecated.json`, so a real prepared version never counted as lacking and the languages #1594 copies from the asset store were never added to a version prepared before it (or by a preparer that could not read the store). The test's fixture held `en_us.json` alone, which hid it. The list the language screen offers, `pack.mcmeta`, is only in the asset index, so its absence is what says the languages are missing. The fixture now has `deprecated.json` too, so the existing completion test fails on the old check. Found on a real install: a prepared 26.3 with `lang/` holding `en_us.json` and `deprecated.json`, no `pack.mcmeta`, and only English in the language screen. Together with #3106 (the asset store itself was incomplete there) it gets the install to `ru_ru`. ## Vanilla reference none (launcher). ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main`, Windows, against upstream/main at b6c936f82) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +8 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | launcher rustfmt | ✅ | | launcher clippy | ✅ | | launcher tests | ✅ 197 passed | | Parity | ➖ not run (--quick) | | Python tests | ❌ on my machine: `python3` there is the Microsoft Store stub, so the pre-push hook, roadmap and javac tests fail (2 failures, 7 errors). Not run against a clean `main`; CI's `verify` has the real answer. | ## Screenshots n/a <!-- Allow edits by maintainers: ticked. --> 🤖 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:08:05 +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#4805
No description provided.