mirror of
https://github.com/horizon-rust/horizon-native-mod-template.git
synced 2026-12-03 19:12:09 +07:00
[PR #1] [MERGED] Package as .hnmod and pin Nightly 2026-10-28 #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-native-mod-template#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
cf1c281Package 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
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.pywritestarget/<id>-<version>.hnmodin the format of horizon-rust/horizon#3140:horizon-native.jsonplusmixins/<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.example_mod. Registry ids are[a-z0-9_], soexample-modcould not be listed.83f15fa, the commit Veinminer pins) instead of028f6088, a main commit between releases. I recomputedsource_sha256forgame.rs, and it matches Veinminer's value.Checks (local, Mac mini)
cargo fmt --check,clippy -D warnings,cargo test,tools/test_template.py: pass.tools/test_stage.py --horizon ~/code/horizonon the real source at83f15fa:status ok, original unchanged, only planned ASTs changed, deterministic.horizon-mixins plan(0500ff2) on the source of83f15fa, as the launcher downloads it: ok, 1 injection and 1 module.tools/package.pyrun 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.