rushstack
rushstack copied to clipboard
[rush] warning: CRLF will be replaced by LF in $file
trafficstars
Is this a feature or a bug?
- [ ] Feature
- [x] Bug
Please describe the actual behavior.
rush init produces files with Windows line breaks.
If that is not intentional, then it is a bug.
But since this is Microsoft, then maybe that is intentional after all.
mkdir foo
cd foo
git init .
rush init
git add .
warning: CRLF will be replaced by LF in .gitattributes.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in .gitignore.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in .travis.yml.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in common/config/rush/.npmrc.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in common/config/rush/command-line.json.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in common/config/rush/common-versions.json.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in common/config/rush/pnpmfile.js.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in common/config/rush/version-policies.json.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in rush.json.
The file will have its original line endings in your working directory
If the issue is a bug, how can we reproduce it? Please provide detailed steps and include a GitHub branch if applicable. Your issue will get resolved faster if you can make it easy to investigate.
What is the expected behavior?
To have LF by default.
If this is a bug, please provide the tool version, Node.js version, and OS.
- Tool: rush
- Tool Version: 5.11.2
- Node Version: 10.15.3
- Is this a LTS version? yes
- Have you tested on a LTS version? yes
- OS: macOS