Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] In writeJSON (grunt), use CRLF on Windows #11359

Open
core-ai-bot opened this issue Aug 30, 2021 · 0 comments
Open

[CLOSED] In writeJSON (grunt), use CRLF on Windows #11359

core-ai-bot opened this issue Aug 30, 2021 · 0 comments

Comments

@core-ai-bot
Copy link
Member

Issue by MarcelGerber
Saturday Jun 17, 2017 at 21:15 GMT
Originally opened as adobe/brackets#13458


On current master and Windows, grunt write-config still adds changes to my git status, even though the diff is only "warning: LF will be replaced by CRLF in src/config.json."

image

This now fixes it by making the grunt method common.writeJSON use CRLF line endings on Windows only.
I couldn't test this on Linux or Mac, but it should only affect Windows.

Also, the other times common.writeJSON is used are as follows:

  • In task build-config writing to dist/config.json
  • In task npm-install writing to dist/npm-shrinkwrap.json and dist/package.json
  • In task update-release-number writing to package.json
    I don't think the difference of CRLF and LF (used before) matters in these cases, but I'm not 100% sure either and don't know how to test.

cc@ficristo@zaggino
#12771 would be fully fixed with this.


MarcelGerber included the following code: https://github.com/adobe/brackets/pull/13458/commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant