[PR #5471] [MERGED] Launcher: a native build of the mods turned on reads as up to date #6308

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

📋 Pull Request Information

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

Base: main ← Head: fix/native-status-digest


📝 Commits (2)

  • 72a14b8 Launcher: a native build of the mods turned on reads as up to date
  • 274cdaf Merge remote-tracking branch 'hr/main' into fix/native-status-digest

📊 Changes

1 file changed (+42 additions, -4 deletions)

View changed files

📝 launcher/src/native_mods.rs (+42 -4)

📄 Description

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

Every native mod installed from the registry showed Needs rebuild on the Mods page right after a build, while Build said "Up to date (no build needed)".

Cause: a build recorded each mod's digest (native-mods.json sha256) over its mixins/<id>/ folder, after repin had rewritten the copy's manifest. The Mods page (native_status::enabled) digests the whole .hnmod, horizon-native.json included. The two never matched. Verified on a real install: the recorded digest equalled the mixin folder's, not the bundle's.

Fix: the build records source_digest: an unpacked .hnmod's whole folder (else the bundle's own folder), read before repin. That is what the page compares.

Test: installed_mods_are_the_checked_files_of_those_turned_on now checks that the build's digest equals native_status::enabled's, and that a repinned copy would differ. Launcher native tests (37) and clippy pass.

🤖 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/5471 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/native-status-digest` --- ### 📝 Commits (2) - [`72a14b8`](https://github.com/horizon-rust/horizon/commit/72a14b86ff4920c790f72757494baaf2fd65abc2) Launcher: a native build of the mods turned on reads as up to date - [`274cdaf`](https://github.com/horizon-rust/horizon/commit/274cdafa5bc1abdbe4626627d332e101dddf0aed) Merge remote-tracking branch 'hr/main' into fix/native-status-digest ### 📊 Changes **1 file changed** (+42 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/native_mods.rs` (+42 -4) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 personally. Every native mod installed from the registry showed **Needs rebuild** on the Mods page right after a build, while **Build** said "Up to date (no build needed)". **Cause:** a build recorded each mod's digest (`native-mods.json` `sha256`) over its `mixins/<id>/` folder, after `repin` had rewritten the copy's manifest. The Mods page (`native_status::enabled`) digests the whole `.hnmod`, `horizon-native.json` included. The two never matched. Verified on a real install: the recorded digest equalled the mixin folder's, not the bundle's. **Fix:** the build records `source_digest`: an unpacked `.hnmod`'s whole folder (else the bundle's own folder), read before `repin`. That is what the page compares. **Test:** `installed_mods_are_the_checked_files_of_those_turned_on` now checks that the build's digest equals `native_status::enabled`'s, and that a repinned copy would differ. Launcher native tests (37) and clippy pass. 🤖 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 06:18:03 +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#6308
No description provided.