mirror of
https://github.com/astral-sh/uv
synced 2026-01-21 21:40:11 -05:00
Add trailing newline when writing download-metadata.json (#17194)
When we added formatting, the newline was added but it isn't written by the generator script so https://github.com/astral-sh/uv/pull/17193 removes it. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -835,7 +835,7 @@ def render(downloads: list[PythonDownload]) -> None:
|
||||
|
||||
VERSIONS_FILE.parent.mkdir(parents=True, exist_ok=True)
|
||||
# Make newlines consistent across platforms
|
||||
VERSIONS_FILE.write_text(json.dumps(results, indent=2), newline="\n")
|
||||
VERSIONS_FILE.write_text(json.dumps(results, indent=2) + "\n", newline="\n")
|
||||
|
||||
|
||||
async def find() -> None:
|
||||
|
||||
Reference in New Issue
Block a user