[GH-ISSUE #4713] Native build with mods for different Horizon versions needs GitHub even when the build already exists #1426

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

Originally created by @reservedbytes on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4713

Originally assigned to: @ErikKalikas on GitHub.

Tried #4401's native-build --allow-version-mismatch on main (70436b6) with lookat, treefall and carryblock (pinned to 142388e) and veinminer 0.3.0 (pinned to 83f15fa), in a scratch launcher home

The first build works: it picks 142388e and horizon-mixins 3f99a5c, builds in about 10 min, and the mods' own files stay as they were

Running it again with nothing changed takes 4 s and uses the kept build, but with GitHub unreachable (a dead proxy) the same command fails at once:

error: Can't tell which of the mods' Horizon revisions is newest: No connection: https://api.github.com/repos/horizon-rust/horizon/commits/142388e…

So a player with mods made for different Nightlies can't switch back to a build they already have while offline, or when GitHub's API rate limit (60 an hour without a token) is used up

Mods that pin the same commit don't hit this, I think they never ask GitHub

I think the commit dates could be cached in the launcher's data (a commit's date never changes), or build could look for an existing build of the same mods before asking for dates

Originally created by @reservedbytes on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4713 Originally assigned to: @ErikKalikas on GitHub. Tried #4401's `native-build --allow-version-mismatch` on `main` (`70436b6`) with lookat, treefall and carryblock (pinned to `142388e`) and veinminer 0.3.0 (pinned to `83f15fa`), in a scratch launcher home The first build works: it picks `142388e` and horizon-mixins `3f99a5c`, builds in about 10 min, and the mods' own files stay as they were Running it again with nothing changed takes 4 s and uses the kept build, but with GitHub unreachable (a dead proxy) the same command fails at once: ``` error: Can't tell which of the mods' Horizon revisions is newest: No connection: https://api.github.com/repos/horizon-rust/horizon/commits/142388e… ``` So a player with mods made for different Nightlies can't switch back to a build they already have while offline, or when GitHub's API rate limit (60 an hour without a token) is used up Mods that pin the same commit don't hit this, I think they never ask GitHub I think the commit dates could be cached in the launcher's data (a commit's date never changes), or `build` could look for an existing build of the same mods before asking for dates
Author
Owner

@ErikKalikas commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6536949476 --> @ErikKalikas commented on GitHub (Oct 31, 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#1426
No description provided.