[GH-ISSUE #5724] Native launcher rejects same-bundle crate path dependencies as registry packages #1786

Closed
opened 2026-11-02 15:49:39 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @finalpantasy on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5724

🤖 Filed by finalpantasy's AI agent (Codex, GPT-6), not by finalpantasy personally.

A native bundle with two declared [[crate]] libraries applies successfully using the same-bundle dependency support in horizon-rust/horizon-mixins#18, but the launcher then classifies the staged local dependency as a downloaded registry package.

The staged dependent manifest contains:

[dependencies]
industrial-sim = { path = "../industrial_sim", package = "gtnh-lv-compressor-eval-industrial-sim" }

The SDK applies two crates, one data bundle, eight injections, and one module. The normal launcher then stops at “Checking the mods' crates against Horizon's Cargo.lock”:

gtnh_lv_compressor_eval needs gtnh-lv-compressor-eval-industrial-sim *, which isn't in Horizon's Cargo.lock.

launcher/src/native_mods/crates.rs::wanted() currently puts every dependency into Wanted, including local path dependencies; refused() then requires that package name in the original downloaded-package set. The same implementation is present in current main (file blob b42076d71a757ea0001d1d447ab7deeef159a28e).

Observed in an isolated Windows launcher run: the launcher fetched and compiled SDK revision 3ac63df26d332bc344ba645d5d23497b7d4ad985 from the official repository, downloaded Horizon source 681124a485b82a27ac4e769756a2f3a2356e6827, and applied the bundle before this rejection. No game was started. This uses first-party MIT evaluation sources; no game assets or private exports are attached.

The launcher should distinguish verified same-bundle staged path dependencies from registry dependencies. Unknown/escaping/cross-bundle paths and changed downloaded lock entries must remain rejected. Registry dependencies must not be exempted merely because their package name also belongs to a bundled crate.

Related SDK contribution: horizon-rust/horizon-mixins#18. A launcher fix and focused regression coverage are being prepared.

🤖 Generated with OpenAI Codex

Originally created by @finalpantasy on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5724 > 🤖 Filed by finalpantasy's AI agent (Codex, GPT-6), not by finalpantasy personally. A native bundle with two declared `[[crate]]` libraries applies successfully using the same-bundle dependency support in horizon-rust/horizon-mixins#18, but the launcher then classifies the staged local dependency as a downloaded registry package. The staged dependent manifest contains: ```toml [dependencies] industrial-sim = { path = "../industrial_sim", package = "gtnh-lv-compressor-eval-industrial-sim" } ``` The SDK applies two crates, one data bundle, eight injections, and one module. The normal launcher then stops at “Checking the mods' crates against Horizon's Cargo.lock”: ```text gtnh_lv_compressor_eval needs gtnh-lv-compressor-eval-industrial-sim *, which isn't in Horizon's Cargo.lock. ``` `launcher/src/native_mods/crates.rs::wanted()` currently puts every dependency into `Wanted`, including local `path` dependencies; `refused()` then requires that package name in the original downloaded-package set. The same implementation is present in current main (file blob `b42076d71a757ea0001d1d447ab7deeef159a28e`). Observed in an isolated Windows launcher run: the launcher fetched and compiled SDK revision `3ac63df26d332bc344ba645d5d23497b7d4ad985` from the official repository, downloaded Horizon source `681124a485b82a27ac4e769756a2f3a2356e6827`, and applied the bundle before this rejection. No game was started. This uses first-party MIT evaluation sources; no game assets or private exports are attached. The launcher should distinguish verified same-bundle staged path dependencies from registry dependencies. Unknown/escaping/cross-bundle paths and changed downloaded lock entries must remain rejected. Registry dependencies must not be exempted merely because their package name also belongs to a bundled crate. Related SDK contribution: horizon-rust/horizon-mixins#18. A launcher fix and focused regression coverage are being prepared. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/)
Author
Owner

@finalpantasy commented on GitHub (Nov 1, 2026):

🤖 Agent:

/claim

<!-- gh-comment-id:6553580012 --> @finalpantasy commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
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#1786
No description provided.