From 8748ca2aa5151940940fec36a8dcc646508fc578 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 13:23:48 +0000 Subject: [PATCH 1/3] Start fix for CRLF pnpm registry fixtures Refs #2238. Assisted-by: Claude Code:claude-fable-5-2 From 0ad6e0a3fa0501f43c00d7ddc2a9175af351c71c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 13:30:24 +0000 Subject: [PATCH 2/3] Check out pnpm registry goldens byte for byte The pnpm-registry-overrides fixtures are real pnpm output, and seven unit tests compare what the scan writes against them byte for byte. Unlike the other captured pnpm fixtures they were not marked -text, so a Windows checkout converted them to CRLF and the tests failed. Fixes #2238. Assisted-by: Claude Code:claude-fable-5-2 --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitattributes b/.gitattributes index 6693e1ed8..5d02bb0be 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 registry route goldens are real pnpm output too: the tests compare +# what the scan writes against them byte for byte, 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 From 94322d4149066b4cdd7d0dc5723aa9178d48ff14 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 13:36:09 +0000 Subject: [PATCH 3/3] Point the golden doc at .gitattributes The module comment listed the fixture trees marked -text by name and had drifted from .gitattributes, which now also covers the pnpm registry goldens. Refs #2238. Assisted-by: Claude Code:claude-fable-5-2 --- .../socket-patch-core/src/vex/discover/testing/golden.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/socket-patch-core/src/vex/discover/testing/golden.rs b/crates/socket-patch-core/src/vex/discover/testing/golden.rs index 1f8fc394b..369a9fbc3 100644 --- a/crates/socket-patch-core/src/vex/discover/testing/golden.rs +++ b/crates/socket-patch-core/src/vex/discover/testing/golden.rs @@ -25,10 +25,9 @@ //! ``` //! //! Unix only: Windows checkouts convert some fixtures' line endings (only -//! `redirect/**`, `pdm-native/*.lock`, `pnpm-hosted/**` and `vlt-locks/**` -//! among the corpus trees are `-text`), -//! and I/O error texts differ, so the snapshot would describe different -//! inputs. The Unix legs (Linux + macOS) pin the behavior. +//! the corpus trees that `.gitattributes` marks `-text` are checked out as +//! committed), and I/O error texts differ, so the snapshot would describe +//! different inputs. The Unix legs (Linux + macOS) pin the behavior. //! //! [`discover_patched_refs`]: crate::vex::discover::discover_patched_refs #![cfg(not(windows))]