Open Gustl22 opened 2 months ago
This only happens if you re-save the changelog file under windows right?
It more depends on the git config
The default is:
git config core.autocrlf
which means, on windows, code is automatically converted to CRLF, to provide compatibility with the system. On a commit, it is then converted to LF:
https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings?platform=windows#global-settings-for-line-endings
So with the default git config, melos version
is not working correctly due to the comparison. It should be a simple fix by replacing all the \r\n
with \n
before comparing, but I haven't gotten to it yet. I can post a PR when I have a free moment.
Is there an existing issue for this?
Version
6.0.0
Description
melos version
produces a new entryif the CHANGELOG.md is formatted in
CRLF
(like in Windows), although it's already existing.Steps to reproduce
CHANGELOG.md
file is formatted asCRLF
and not asLF
in your preffered editor. This should be the standard behavior in Windows (at least for IntelliJ).melos version
Expected behavior
Not have a dupe entry for
Screenshots
No response
Additional context and comments
E.g. see https://github.com/bluefireteam/audioplayers/blob/main/CHANGELOG.md , see change.