uv add pkg
adds extraneous new lines in project.dependencies
if the pyproject.toml has CRLF
ending
#7621
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Contribution especially encouraged
windows
Specific to the Windows platform
I encountered this when I ported my existing
pyproject.toml
to use uv on Windows 11. Here's the reproduction with powershell on Windows 11:Setup a dummy project:
❯ cd .\hello-world\
Everything looks fine here, uv created pyproject.toml file ends with
LF
on windows:Add another dep, still fine, still ends with LF.
Change LF to CRLF:
Check again:
Add a new dep
Extraneous new lines got added and the ending got changed to LF
The text was updated successfully, but these errors were encountered: