cargo add
, etc do not preserve \r\n
line endings
#14863
Labels
C-bug
Category: bug
Command-add
Command-fix
Command-remove
S-triage
Status: This issue is waiting on initial triage.
Problem
Generally people want line endings to be consistent. When Cargo modifies a
Cargo.toml
, it may insert\n
independent of what line ending type is usedSteps
Cargo.toml
file with\r\n
line endingscargo add serde
\n
line endings are mixed inPossible Solution(s)
Check if
\r\n
is present and then convert any stray\n
s to\r\n
Notes
See also #14857 as cargo-script has another area where this can be hit
Version
The text was updated successfully, but these errors were encountered: