Skip to content

Conversation

@paul-marechal
Copy link
Member

@paul-marechal paul-marechal commented Feb 18, 2022

Depending on the Git configuration of the cloned projects, the EOL might
differ from the OS recommended one. On Windows Git might use \n in place
of \r\n for example.

Implement a small scan to figure out what is the current EOL before
generating the re-export files.

Here's an example of what I see with git status after running yarn on Windows:

image

And Git being the nice guy he his, outputs the following when doing git add .:

image

In the end this means Git won't count those diffs for real, but it's annoying.

How to test

Running yarn on Windows should not dirty your Git index anymore.

Review checklist

Reminder for reviewers

Depending on the Git configuration of the cloned projects, the EOL might
differ from the OS recommended one. On Windows Git might use \n in place
of \r\n for example.

Implement a small scan to figure out what is the current EOL before
generating the re-export files.
@paul-marechal paul-marechal added OS/Windows issues related to the Windows OS contributor experience issues related to the contributor experience labels Feb 18, 2022
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unable to test on windows, but I confirmed that on macOS and linux that the git index is clean 👍:

┌─[±][mp/fix-gen-eol ✓][theia][]
└─▪ git status
On branch mp/fix-gen-eol
Your branch is up to date with 'origin/mp/fix-gen-eol'.

nothing to commit, working tree clean

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
Confirmed it works correctly for mac and linux, and you confirmed locally that it works for windows.

@paul-marechal paul-marechal merged commit 92b376d into master Feb 22, 2022
@paul-marechal paul-marechal deleted the mp/fix-gen-eol branch February 22, 2022 19:13
@paul-marechal
Copy link
Member Author

@vince-fugnitto thanks!

@github-actions github-actions bot added this to the 1.23.0 milestone Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor experience issues related to the contributor experience OS/Windows issues related to the Windows OS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants