From 631ab22b9afaf0ce0db10eb0699c44b08e29ddc2 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 19 Dec 2025 18:56:17 -0600 Subject: [PATCH] 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 --- crates/uv-python/fetch-download-metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uv-python/fetch-download-metadata.py b/crates/uv-python/fetch-download-metadata.py index b21c475db..f12bd012e 100755 --- a/crates/uv-python/fetch-download-metadata.py +++ b/crates/uv-python/fetch-download-metadata.py @@ -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: