[PR #2729] [MERGED] refactor: the pack filter regex lives in horizon-client-core #4570

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

📋 Pull Request Information

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

Base: main ← Head: refactor/cut-pack-pattern


📝 Commits (2)

  • 86d90c3 refactor: the pack filter regex lives in horizon-client-core
  • 26b172e Merge remote-tracking branch 'origin/main' into refactor/cut-pack-pattern

📊 Changes

5 files changed (+7 additions, -5 deletions)

View changed files

📝 crates/horizon-client-core/src/lib.rs (+4 -2)
📝 crates/horizon-client-core/src/pattern.rs (+0 -0)
📝 crates/horizon-client/src/atlas_sources.rs (+1 -1)
📝 crates/horizon-client/src/packs.rs (+1 -1)
📝 docs/resource-packs.md (+1 -1)

📄 Description

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

Step A of the plan to break the cycle in horizon-client's lib (crate split, ci-speed). 80 of the lib's modules (181k lines) form one dependency cycle, so none of them can move to a crate of its own. This PR removes one edge of that cycle. It moves code only: no behaviour change.

What

  • packs/pattern.rs (the pack.mcmeta filter regex subset, self-contained) moves to horizon-client-core/src/pattern.rs.
  • horizon_client::packs::pattern re-exports it, so the old path still works.
  • atlas_sources imports it from horizon-client-core, which removes the atlas_sources -> packs edge.
  • docs/resource-packs.md points at the new path.

Self-check

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 167c3d14b, 11 min 39 s)

Check Result
Scope ✅ 5 files, +7 −5
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ✅ 331 passed (55 s)
rustfmt ✅ (11 s)
clippy ✅ (3 min 2 s)
tests: horizon-client, horizon-client-core ✅ 1352 passed (5 min 45 s)
doc tests ✅ 0 passed (1 min 33 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 121 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 109 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/2729 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `refactor/cut-pack-pattern` --- ### 📝 Commits (2) - [`86d90c3`](https://github.com/horizon-rust/horizon/commit/86d90c38a9c1794a14a59eccda6203f4f9f16016) refactor: the pack filter regex lives in horizon-client-core - [`26b172e`](https://github.com/horizon-rust/horizon/commit/26b172eb1d2cd78406bf740dab8a50c9696f629b) Merge remote-tracking branch 'origin/main' into refactor/cut-pack-pattern ### 📊 Changes **5 files changed** (+7 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-core/src/lib.rs` (+4 -2) 📝 `crates/horizon-client-core/src/pattern.rs` (+0 -0) 📝 `crates/horizon-client/src/atlas_sources.rs` (+1 -1) 📝 `crates/horizon-client/src/packs.rs` (+1 -1) 📝 `docs/resource-packs.md` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Step A of the plan to break the cycle in horizon-client's lib (crate split, ci-speed). 80 of the lib's modules (181k lines) form one dependency cycle, so none of them can move to a crate of its own. This PR removes one edge of that cycle. It moves code only: no behaviour change. ## What - `packs/pattern.rs` (the `pack.mcmeta` filter regex subset, self-contained) moves to `horizon-client-core/src/pattern.rs`. - `horizon_client::packs::pattern` re-exports it, so the old path still works. - `atlas_sources` imports it from horizon-client-core, which removes the `atlas_sources -> packs` edge. - docs/resource-packs.md points at the new path. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 167c3d14b, 11 min 39 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +7 −5 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ✅ 331 passed (55 s) | | rustfmt | ✅ (11 s) | | clippy | ✅ (3 min 2 s) | | tests: horizon-client, horizon-client-core | ✅ 1352 passed (5 min 45 s) | | doc tests | ✅ 0 passed (1 min 33 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 121 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 109 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 04:18:09 +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#4570
No description provided.