Open
Description
Description:
When I run npm install
or npm run build
on macOS, I get the following warning:
CRLF will be replaced by LF the next time Git touches it
.
-
Example 1:
warning: in the working copy of 'package-lock.json', CRLF will be replaced by LF the next time Git touches it
-
Example 2:
warning: in the working copy of 'dist/cache-save/index.js', CRLF will be replaced by LF the next time Git touches it warning: in the working copy of 'dist/setup/index.js', CRLF will be replaced by LF the next time Git touches it
Action version:
This issue occurs when making changes locally, not when using it in Actions.
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
This issue occurs when making changes locally, not when using it in Actions.
Tools version:
$ node --version
v22.14.0
$ npm --version
10.9.2
Repro steps:
- Clone the repository on macOS.
- Run
npm install
.- The warning appears for
package-lock.json
.
- The warning appears for
- Run
npm run build
.- The warning appears for
dist/cache-save/index.js
anddist/setup/index.js
.
- The warning appears for
Expected behavior:
npm install
and npm run build
should complete without any warnings.
Actual behavior:
The following warning appears:
CRLF will be replaced by LF the next time Git touches it
.