From ba14f5d4446c5a76c0890e0f7baf411859372934 Mon Sep 17 00:00:00 2001 From: Mikola Lysenko Date: Wed, 25 Nov 2026 10:01:42 -0500 Subject: [PATCH] Check the pnpm registry-route fixtures out as committed on Windows The fixtures under `tests/fixtures/pnpm-registry-overrides` are compared byte for byte by six unit tests of `formats::pnpm` and one of the hosted engine. The directory had no rule in `.gitattributes`, unlike `pnpm-hosted` and the other byte-exact fixture directories, so a Windows checkout converted the files to CRLF and the seven tests failed there ("mixes CRLF and LF line endings", or `\r\n` against `\n`). Co-Authored-By: Claude Fable 5.2 --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitattributes b/.gitattributes index 6693e1ed8..95d1dbe47 100644 --- a/.gitattributes +++ b/.gitattributes @@ -22,6 +22,11 @@ crates/socket-patch-core/tests/fixtures/upstream/** -text # derive their CRLF variants from the LF bytes themselves. crates/socket-patch-core/tests/fixtures/pnpm-hosted/** -text +# The pnpm registry-route fixtures (locks, workspace files and the plans +# written from them) are compared byte for byte, and the rewriters refuse +# CRLF, so they are checked out exactly as committed. +crates/socket-patch-core/tests/fixtures/pnpm-registry-overrides/** -text + # Captured vlt locks are byte-real; CRLF variants are derived in the tests. crates/socket-patch-core/tests/fixtures/vlt-locks/** -text