[GH-ISSUE #6372] native_loot_kinds_stay_hookable fails on Windows checkouts with core.autocrlf #2067

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

Originally created by @breachato on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6372

Originally assigned to: @breachato on GitHub.

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

game::native_hooks::tests::native_loot_kinds_stay_hookable reads horizon-world/src/loot.rs with include_str! and looks for "\n}\n" to find the end of each hook's body. On a Windows checkout with Git for Windows' default core.autocrlf=true the file is CRLF, the search finds nothing and find(..).unwrap() panics, so pr_ready reports a failure on every branch there. Several PRs mention it (#6321, #6322, #6337, #6348).

The tests next to it in the same module already normalise with .replace("\r\n", "\n"); this one doesn't. CI checks out with LF and is unaffected.

Originally created by @breachato on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6372 Originally assigned to: @breachato on GitHub. > 🤖 Filed by breachato's AI agent (Claude Code, Claude Opus 5.5), not by breachato personally. `game::native_hooks::tests::native_loot_kinds_stay_hookable` reads `horizon-world/src/loot.rs` with `include_str!` and looks for `"\n}\n"` to find the end of each hook's body. On a Windows checkout with Git for Windows' default `core.autocrlf=true` the file is CRLF, the search finds nothing and `find(..).unwrap()` panics, so `pr_ready` reports a failure on every branch there. Several PRs mention it (#6321, #6322, #6337, #6348). The tests next to it in the same module already normalise with `.replace("\r\n", "\n")`; this one doesn't. CI checks out with LF and is unaffected.
Author
Owner

@breachato commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6563048298 --> @breachato commented on GitHub (Nov 1, 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#2067
No description provided.