Skip to content

test: stop requiring core.autocrlf=true on windows#63102

Open
nadalaba wants to merge 1 commit intonodejs:mainfrom
nadalaba:fix-windows-tests
Open

test: stop requiring core.autocrlf=true on windows#63102
nadalaba wants to merge 1 commit intonodejs:mainfrom
nadalaba:fix-windows-tests

Conversation

@nadalaba
Copy link
Copy Markdown

@nadalaba nadalaba commented May 3, 2026

Some tests on Windows (test\parallel\test-snapshot-typescript) require the repo to be checked-out with the git config core.autocrlf set to true.
However, a lot of users prefer to use modern editors that can handle LF and keep core.autocrlf set to false to minimize headaches.
This PR fixes the tests for them without breaking it for others.

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/startup

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels May 3, 2026
@aduh95
Copy link
Copy Markdown
Contributor

aduh95 commented May 4, 2026

Note that we explicitly request it to be set to true:

node/test/README.md

Lines 11 to 12 in f694c3a

For the tests to run on Windows, be sure to clone Node.js source code with the
`autocrlf` git config flag set to true.

Can you split this into two PR so this can be reviewed and backported separately?

Signed-off-by: Nad Alaba <37968805+nadalaba@users.noreply.github.com>
@nadalaba nadalaba force-pushed the fix-windows-tests branch from 867cffd to a0a5162 Compare May 4, 2026 17:06
@nadalaba nadalaba changed the title test: fix tests on windows test: stop requiring core.autocrlf=true on windows May 4, 2026
@nadalaba
Copy link
Copy Markdown
Author

nadalaba commented May 4, 2026

Can you split this into two PR so this can be reviewed and backported separately?

I opened #63118 for the other test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants