Repository navigation
Check the pnpm registry-route fixtures out as committed on Windows - #2240
Closed
Mikola Lysenko (mikolalysenko) wants to merge 1 commit into
Closed
Mikola Lysenko (mikolalysenko) wants to merge 1 commit into
Mikola Lysenko (mikolalysenko) wants to merge 1 commit into
Conversation
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 <noreply@anthropic.com>
Collaborator
Author
Mikola Lysenko (mikolalysenko)
deleted the
fix/pnpm-registry-fixtures-eol
branch
November 25, 2026 15:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seven pnpm unit tests pass on Windows again: their fixtures are no longer converted to CRLF on checkout.
Why
The fixtures under
crates/socket-patch-core/tests/fixtures/pnpm-registry-overridesare compared byte for byte by six unit tests offormats::pnpm(named_registries,registry_alias) and byhosted::engine::tests::the_registry_route_writes_what_pnpm_writes. The directory has no rule in.gitattributes, unlikepnpm-hostedand the other byte-exact fixture directories, so a Windows checkout converts the files to CRLF. In thetest (windows-latest, 1)job of the Windows run those seven tests fail ("mixes CRLF and LF line endings", or\r\nagainst\n); the other 8,060 or so tests of that binary pass.What changes
One rule in
.gitattributes: the directory is checked out exactly as committed (-text), as its neighbours are.How it was checked
git check-attr texton a file of the directory saysunsetwith the rule.e2e-windows (e2e_redirect_pnpm_build), fails on main for a different reason and is not changed here.🤖 Generated with Claude Code