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 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))]