[PR #1] [MERGED] Package as .hnmod and pin Nightly 2026-10-28 #1

Closed
opened 2026-11-03 04:02:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-native-mod-template/pull/1
Author: @ludovic111
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: feat/hnmod-nightly-pin


📝 Commits (1)

  • cf1c281 Package as .hnmod and pin Nightly 2026-10-28

📊 Changes

7 files changed (+82 additions, -10 deletions)

View changed files

📝 Cargo.toml (+1 -1)
📝 README.md (+23 -3)
📝 compatibility.json (+2 -2)
📝 mixins/example_mod/break.rs (+0 -0)
📝 mixins/example_mod/horizon-mixin.toml (+2 -2)
📝 mixins/example_mod/runtime.rs (+2 -2)
➕ tools/package.py (+52 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

This makes the template produce what the registry and the launcher take, pinned to a Nightly as levzzz5154 asked on 2026-10-28 ("mod versions should be pinned to nightly ones").

  • tools/package.py writes target/<id>-<version>.hnmod in the format of horizon-rust/horizon#3140: horizon-native.json plus mixins/<id>/*.rs|toml, with fixed dates and modes. It is based on levzzz's Veinminer packager, made generic: the id and version come from the manifest. It refuses an id the registry can't take, a bundle folder not named after its id, and pins that differ.
  • The example's id becomes example_mod. Registry ids are [a-z0-9_], so example-mod could not be listed.
  • The template is pinned to Nightly 2026-10-28 (83f15fa, the commit Veinminer pins) instead of 028f6088, a main commit between releases. I recomputed source_sha256 for game.rs, and it matches Veinminer's value.
  • The README has a new section, "Pin to a Nightly, package, publish".

Checks (local, Mac mini)

  • cargo fmt --check, clippy -D warnings, cargo test, tools/test_template.py: pass.
  • tools/test_stage.py --horizon ~/code/horizon on the real source at 83f15fa: status ok, original unchanged, only planned ASTs changed, deterministic.
  • horizon-mixins plan (0500ff2) on the source of 83f15fa, as the launcher downloads it: ok, 1 injection and 1 module.
  • tools/package.py run twice gives the same SHA-256 (0b1dbbb2…, 1464 bytes).

🤖 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-native-mod-template/pull/1 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `feat/hnmod-nightly-pin` --- ### 📝 Commits (1) - [`cf1c281`](https://github.com/horizon-rust/horizon-native-mod-template/commit/cf1c281e03de3ff2674fe7b748e3de22ac1230d2) Package as .hnmod and pin Nightly 2026-10-28 ### 📊 Changes **7 files changed** (+82 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.toml` (+1 -1) 📝 `README.md` (+23 -3) 📝 `compatibility.json` (+2 -2) 📝 `mixins/example_mod/break.rs` (+0 -0) 📝 `mixins/example_mod/horizon-mixin.toml` (+2 -2) 📝 `mixins/example_mod/runtime.rs` (+2 -2) ➕ `tools/package.py` (+52 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. This makes the template produce what the registry and the launcher take, pinned to a Nightly as levzzz5154 asked on 2026-10-28 ("mod versions should be pinned to nightly ones"). - `tools/package.py` writes `target/<id>-<version>.hnmod` in the format of horizon-rust/horizon#3140: `horizon-native.json` plus `mixins/<id>/*.rs|toml`, with fixed dates and modes. It is based on levzzz's Veinminer packager, made generic: the id and version come from the manifest. It refuses an id the registry can't take, a bundle folder not named after its id, and pins that differ. - The example's id becomes `example_mod`. Registry ids are `[a-z0-9_]`, so `example-mod` could not be listed. - The template is pinned to Nightly 2026-10-28 (`83f15fa`, the commit Veinminer pins) instead of `028f6088`, a main commit between releases. I recomputed `source_sha256` for `game.rs`, and it matches Veinminer's value. - The README has a new section, "Pin to a Nightly, package, publish". ## Checks (local, Mac mini) - `cargo fmt --check`, `clippy -D warnings`, `cargo test`, `tools/test_template.py`: pass. - `tools/test_stage.py --horizon ~/code/horizon` on the real source at `83f15fa`: `status ok`, original unchanged, only planned ASTs changed, deterministic. - `horizon-mixins plan` (0500ff2) on the source of `83f15fa`, as the launcher downloads it: ok, 1 injection and 1 module. - `tools/package.py` run twice gives the same SHA-256 (`0b1dbbb2…`, 1464 bytes). 🤖 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 04:02:15 +07:00
Sign in to join this conversation.
No labels
pull-request
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-native-mod-template#1
No description provided.