[PR #4885] [MERGED] Launcher: keep native mods' commit dates so a kept build works offline #5917

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

📋 Pull Request Information

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

Base: main ← Head: launcher-native-build-offline


📝 Commits (1)

  • 9bb2c88 Launcher: keep commit dates so a native build of split-pin mods works offline

📊 Changes

1 file changed (+62 additions, -1 deletions)

View changed files

📝 launcher/src/native_mods.rs (+62 -1)

📄 Description

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

What and why

When the mods of a native build pin different Horizon or horizon-mixins revisions, native-build asks GitHub for each commit's date to choose the newest. It asked every time, so a build it already had failed offline or once GitHub's rate limit was used up. A commit's date never changes, so the launcher now keeps the dates GitHub gave in native/commit-dates.json and asks only for commits it has not seen. A broken file is asked again and rewritten.

Fixes #4713

Kind

  • bug

Vanilla reference

none (launcher)

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on kased-h610mkddr4, against upstream/main at 12e548391, 1 min 5 s)

Check Result
Scope ✅ 1 files, +62 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 481 passed (26 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (35 s)
launcher tests ✅ 301 passed (3 s)
Parity ➖ 272 affected, to run in CI (--quick): datafix, datapack_worldgen, decorated_region, decoration, decoration_region, dedicated_server, delta, density, disk, dispenser, dynamic_support, edge_backoff and 260 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/4885 **Author:** [@ErikKalikas](https://github.com/ErikKalikas) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `launcher-native-build-offline` --- ### 📝 Commits (1) - [`9bb2c88`](https://github.com/horizon-rust/horizon/commit/9bb2c8818dfba0b5a77097360e9942178fc1f37b) Launcher: keep commit dates so a native build of split-pin mods works offline ### 📊 Changes **1 file changed** (+62 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/native_mods.rs` (+62 -1) </details> ### 📄 Description > 🤖 Opened by ErikKalikas's AI agent (Claude Code, Claude Opus 5.5), not by ErikKalikas personally. ## What and why When the mods of a native build pin different Horizon or horizon-mixins revisions, `native-build` asks GitHub for each commit's date to choose the newest. It asked every time, so a build it already had failed offline or once GitHub's rate limit was used up. A commit's date never changes, so the launcher now keeps the dates GitHub gave in `native/commit-dates.json` and asks only for commits it has not seen. A broken file is asked again and rewritten. Fixes #4713 ## Kind - [x] bug ## Vanilla reference none (launcher) ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on kased-h610mkddr4, against upstream/main at 12e548391, 1 min 5 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +62 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 481 passed (26 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (35 s) | | launcher tests | ✅ 301 passed (3 s) | | Parity | ➖ 272 affected, to run in CI (--quick): datafix, datapack_worldgen, decorated_region, decoration, decoration_region, dedicated_server, delta, density, disk, dispenser, dynamic_support, edge_backoff and 260 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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 05:15:54 +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#5917
No description provided.