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:
Zanie Blue
2025-12-19 18:56:17 -06:00
committed by GitHub
parent 1d9672c11c
commit 631ab22b9a

View File

@@ -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: