mirror of
https://github.com/horizon-rust/horizon-mixins.git
synced 2026-12-03 19:34:02 +07:00
[PR #11] [MERGED] fix(native): edit a crlf cargo.lock instead of refusing it #16
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-mixins#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/horizon-rust/horizon-mixins/pull/11
Author: @reservedbytes
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154
Base:
main← Head:fix/crlf-cargo-lock📝 Commits (1)
f780789fix(native): edit a crlf cargo.lock instead of refusing it📊 Changes
2 files changed (+27 additions, -0 deletions)
View changed files
📝
crates/horizon-mixins-cli/tests/cases/native.rs(+23 -0)📝
crates/horizon-mixins-core/src/native.rs(+4 -0)📄 Description
What and why
On Windows, Git checks Horizon out with CRLF by default (
core.autocrlf), and Horizon's.gitattributesdoesn't pinCargo.lockto LFCargo is fine with that, but any bundle with a
[[crate]]fails withE_CRATE: the dependent has no workspace entry in Cargo.lockedit_locksplits the lock on"\n\n"and matches lines ending in", so with\r\nit finds nothing.#4 doesn't cover this... it only sets LF for horizon-mixins' own checkout, not the workspace it stages
edit_locknow edits an LF copy and gives the lock its CRLF backChecks
cargo fmt --all --checkcargo clippy --workspace --all-targets --locked -- -D warningscargo test --workspace --locked(92 passed, new testa_crlf_checkout_stages_and_builds, which fails without the fix)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.