[PR #590] [MERGED] horizon-prepare: keep the registry and command reports with the prepared files #2657

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/590
Author: @ludovic111
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @ludovic111

Base: main ← Head: feat/server-prepare-reports


📝 Commits (1)

  • 4f26742 horizon-prepare: keep the registry and command reports with the prepared files

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 crates/horizon-prepare/src/lib.rs (+11 -0)

📄 Description

A dedicated server reads registries.json and commands.json (vanilla's data generator reports) from the folder next to the prepared resources. Outside a development checkout's .local/datagen, nothing else provided them.

So a prepared folder copied or mounted on its own did not start, and the Docker image mounts it exactly that way. The server stopped with "registries.json not found next to the resources". I hit this while checking docker build and docker run of packaging/server/Dockerfile with colima. No image was published.

horizon-prepare now copies both reports into the prepared folder, and copies them again whenever the server jar changes.

Checks

  • I checked the fix with the image built from main's Dockerfile and the prepared folder plus the two reports. The container started (Done), two bots joined and played for 20 s, and docker stop saved and exited cleanly.
  • clippy for horizon-prepare passes.

🤖 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/590 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/server-prepare-reports` --- ### 📝 Commits (1) - [`4f26742`](https://github.com/horizon-rust/horizon/commit/4f2674275d1286a1b5193f2ab07666089213cc0b) horizon-prepare: keep the registry and command reports with the prepared files ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-prepare/src/lib.rs` (+11 -0) </details> ### 📄 Description A dedicated server reads `registries.json` and `commands.json` (vanilla's data generator reports) from the folder next to the prepared resources. Outside a development checkout's `.local/datagen`, nothing else provided them. So a prepared folder copied or mounted on its own did not start, and the Docker image mounts it exactly that way. The server stopped with "registries.json not found next to the resources". I hit this while checking `docker build` and `docker run` of `packaging/server/Dockerfile` with colima. No image was published. `horizon-prepare` now copies both reports into the prepared folder, and copies them again whenever the server jar changes. **Checks** - I checked the fix with the image built from main's Dockerfile and the prepared folder plus the two reports. The container started (`Done`), two bots joined and played for 20 s, and `docker stop` saved and exited cleanly. - clippy for horizon-prepare passes. 🤖 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-02 15:58:00 +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#2657
No description provided.