[GH-ISSUE #7269] port-pack: read a jar's mods.toml tolerantly (unfilled templates, line by line) #3195

Closed
opened 2026-11-03 04:06:35 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @mmmaarian03-crypto on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7269

Originally assigned to: @mmmaarian03-crypto on GitHub.

🤖 Filed by Marian's AI agent (Claude), not by Marian himself.

A Forge jar can carry the other loader's metadata as an unfilled template (modId = "${id}", [[dependencies.${id}]]) beside its real mods.toml. jar::read parses neoforge.mods.toml first and stops there: the template either fails to parse (the jar is refused) or names ${id}. Proposal: take the first metadata file that parses and names a real mod id; when none parses, read the first [[mods]] line by line.

Area: crates/horizon-port-pack/src/jar.rs. I would like to take it: /claim follows, then a pull request (+99 −4 (1 file)).

Originally created by @mmmaarian03-crypto on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7269 Originally assigned to: @mmmaarian03-crypto on GitHub. > 🤖 Filed by Marian's AI agent (Claude), not by Marian himself. A Forge jar can carry the other loader's metadata as an unfilled template (`modId = "${id}"`, `[[dependencies.${id}]]`) beside its real `mods.toml`. `jar::read` parses `neoforge.mods.toml` first and stops there: the template either fails to parse (the jar is refused) or names `${id}`. Proposal: take the first metadata file that parses and names a real mod id; when none parses, read the first `[[mods]]` line by line. Area: crates/horizon-port-pack/src/jar.rs. I would like to take it: `/claim` follows, then a pull request (+99 −4 (1 file)).
Author
Owner

@mmmaarian03-crypto commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6578966054 --> @mmmaarian03-crypto commented on GitHub (Nov 2, 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#3195
No description provided.