Closed kostyamm closed 10 months ago
Hi kostyamm, I can not reproduce your issue on my side. Could you kindly check is there any .gitattributes
file in your repository?
This file is controlling the eol
for specific patterns. Related doc: https://git-scm.com/docs/gitattributes#_eol
If everything seems to be good, could you provide a reproduciable repository? We can help to do further investigation based on this repo.
Hi, yes, we have a .gitattributes
with attribute like this
command-line.json eol=lf
Solved the problem by removing the command-line.json eol=lf
artibute in .gitattributes
and also to prevent prettier from changing the file format we added an exception for this file in .prettierignore
If you don't use prettier it is enough to remove the attribute
Summary
Running the
rush update
on MacOS causes thecommand-line.json
file inautoinstallers
directory to change the line format to Windows lines (CRLF).Repro steps
rush update
*/autoinstallers/*/rush-plugins/rush-init-project-plugin/rush-init-project-plugin/command-line.json
Expected result: These files should use Unix (LF) style newlines (i.e. \n)
Actual result: These files use Windows (CRLF) style newlines (i.e. \r\n)
Details