[PR #4401] [MERGED] Launcher: build native mods made for different Horizon versions, after "Build anyway" #5606

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

📋 Pull Request Information

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

Base: main ← Head: launcher/native-pin-mismatch


📝 Commits (2)

  • 85dbd83 Launcher: build native mods made for different Horizon versions, after "Build anyway"
  • f7ce36c Merge main into native-pin-mismatch

📊 Changes

12 files changed (+275 additions, -19 deletions)

View changed files

📝 docs/launcher-commands.md (+1 -0)
📝 docs/native-mods.md (+6 -3)
📝 launcher/lang/de.json (+3 -0)
📝 launcher/lang/es.json (+3 -0)
📝 launcher/lang/fr.json (+3 -0)
📝 launcher/lang/pl.json (+3 -0)
📝 launcher/lang/ru.json (+3 -0)
📝 launcher/lang/uk.json (+3 -0)
📝 launcher/lang/zh.json (+3 -0)
📝 launcher/src/cli.rs (+18 -2)
📝 launcher/src/main.rs (+58 -6)
📝 launcher/src/native_mods.rs (+171 -8)

📄 Description

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

Native mods pinned to different Horizon commits can now be built together, after the player agrees. Until now the launcher refused them ("These mods were made for different Horizon revisions and can't be built together"). In practice they are only potentially unsupported and often still work. Today almost no two registry native mods pin the same commit: lookat, treefall and carryblock pin 142388e/mixins 0d6b103, Veinminer ba6344a/d9c83d7, and shulker_peek, distant_horizons and pixelmon each pin another one.

What changes

  • Horizon revision. When the pinned mods disagree, the build uses the newest pinned commit (by commit time, from GitHub's API). Each mod made for another commit is listed (lookat → 142388e; the build uses ba6344a). The build starts only once the player agrees. Those mods are repinned on the build's own copy (mods.incoming), as hook-point mods already are; the installed mod is never edited.
  • horizon-mixins. When the mods' pins differ, the build uses the newest of them and MIXINS_REV, so never one older than a mod was made with. A 0.6 bundle (hook =, [[crate]]) can't be applied by an older horizon-mixins. This happens without asking: horizon-mixins reads older manifests.
  • Failure. When horizon-mixins or the compile fails on such a build, the error adds "Some mods were made for other Horizon versions (…), which may be why. Install versions made for the same Nightly."
  • Unchanged. Mods that agree, or have no pin, build exactly as before, with no date lookups. If GitHub can't be reached to order differing pins, the build fails and says so.
  • Registry installs never checked pins, so nothing there changes.

The flow

  • GUI (Settings › Native mods):
    1. Build, then "I trust these mods: build", as today.
    2. When the mods differ, the build stops before compiling. A panel shows "These mods were made for different Horizon versions", the list, and "They often still work together. If the build fails, install versions made for the same Nightly."
    3. Build anyway starts the build. Cancel closes the panel; so does turning Native mods off.
  • CLI: native-build prints the list and "They often still build: pass --allow-version-mismatch to try."; the new flag builds them. docs/launcher-commands.md is regenerated.

New strings are translated into the 6 launcher languages. docs/native-mods.md is updated.

Overlaps

My open #3870, #3855, #3891 and #3964 also change native_mods.rs (build, its signature and the Settings/Mods page row). This diff keeps to the pin choice, one new build argument and one panel, so rebasing them should be mechanical. #3855 moves Build to the Mods page; the mismatch panel would move with it.

Checks

  • cargo fmt --check, cargo clippy --locked --all-targets -D warnings: clean.
  • cargo test --locked (launcher): all pass, including the new mods_made_for_different_revisions_build_on_the_newest. It covers the newest Horizon pin, horizon-mixins never older than a pin and the launcher's own when newer, one or equal pins asking no dates, an offline failure, the list shown, and hook mods not listed.
  • No real build was run.

🤖 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/4401 **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:** `launcher/native-pin-mismatch` --- ### 📝 Commits (2) - [`85dbd83`](https://github.com/horizon-rust/horizon/commit/85dbd835d69239045a9a8d2ae19f0874e1f3dc48) Launcher: build native mods made for different Horizon versions, after "Build anyway" - [`f7ce36c`](https://github.com/horizon-rust/horizon/commit/f7ce36c8e1d0ce9895c934eb17547405b8ffbb10) Merge main into native-pin-mismatch ### 📊 Changes **12 files changed** (+275 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `docs/launcher-commands.md` (+1 -0) 📝 `docs/native-mods.md` (+6 -3) 📝 `launcher/lang/de.json` (+3 -0) 📝 `launcher/lang/es.json` (+3 -0) 📝 `launcher/lang/fr.json` (+3 -0) 📝 `launcher/lang/pl.json` (+3 -0) 📝 `launcher/lang/ru.json` (+3 -0) 📝 `launcher/lang/uk.json` (+3 -0) 📝 `launcher/lang/zh.json` (+3 -0) 📝 `launcher/src/cli.rs` (+18 -2) 📝 `launcher/src/main.rs` (+58 -6) 📝 `launcher/src/native_mods.rs` (+171 -8) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves. Native mods pinned to different Horizon commits can now be built together, after the player agrees. Until now the launcher refused them ("These mods were made for different Horizon revisions and can't be built together"). In practice they are only potentially unsupported and often still work. Today almost no two registry native mods pin the same commit: lookat, treefall and carryblock pin `142388e`/mixins `0d6b103`, Veinminer `ba6344a`/`d9c83d7`, and shulker_peek, distant_horizons and pixelmon each pin another one. ## What changes - **Horizon revision.** When the pinned mods disagree, the build uses the newest pinned commit (by commit time, from GitHub's API). Each mod made for another commit is listed (`lookat → 142388e; the build uses ba6344a`). The build starts only once the player agrees. Those mods are repinned on the build's own copy (`mods.incoming`), as hook-point mods already are; the installed mod is never edited. - **horizon-mixins.** When the mods' pins differ, the build uses the newest of them and `MIXINS_REV`, so never one older than a mod was made with. A 0.6 bundle (`hook =`, `[[crate]]`) can't be applied by an older horizon-mixins. This happens without asking: horizon-mixins reads older manifests. - **Failure.** When horizon-mixins or the compile fails on such a build, the error adds "Some mods were made for other Horizon versions (…), which may be why. Install versions made for the same Nightly." - **Unchanged.** Mods that agree, or have no pin, build exactly as before, with no date lookups. If GitHub can't be reached to order differing pins, the build fails and says so. - **Registry installs** never checked pins, so nothing there changes. ## The flow - **GUI** (Settings › Native mods): 1. Build, then "I trust these mods: build", as today. 2. When the mods differ, the build stops before compiling. A panel shows "These mods were made for different Horizon versions", the list, and "They often still work together. If the build fails, install versions made for the same Nightly." 3. **Build anyway** starts the build. **Cancel** closes the panel; so does turning Native mods off. - **CLI:** `native-build` prints the list and "They often still build: pass --allow-version-mismatch to try."; the new flag builds them. `docs/launcher-commands.md` is regenerated. New strings are translated into the 6 launcher languages. `docs/native-mods.md` is updated. ## Overlaps My open #3870, #3855, #3891 and #3964 also change `native_mods.rs` (`build`, its signature and the Settings/Mods page row). This diff keeps to the pin choice, one new `build` argument and one panel, so rebasing them should be mechanical. #3855 moves Build to the Mods page; the mismatch panel would move with it. ## Checks - `cargo fmt --check`, `cargo clippy --locked --all-targets -D warnings`: clean. - `cargo test --locked` (launcher): all pass, including the new `mods_made_for_different_revisions_build_on_the_newest`. It covers the newest Horizon pin, horizon-mixins never older than a pin and the launcher's own when newer, one or equal pins asking no dates, an offline failure, the list shown, and hook mods not listed. - No real build was run. 🤖 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:13:44 +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#5606
No description provided.