From de7ae95f18bf28258fcd239daa7030f1244f7f3e Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Sat, 2 Nov 2024 12:55:29 +0100 Subject: [PATCH] azure-cli.extensions-tool: add final newline when writing json Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.json | 2 +- pkgs/by-name/az/azure-cli/extensions-tool.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.json b/pkgs/by-name/az/azure-cli/extensions-generated.json index af98ec1fdf8429..25a7c78dee85f4 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.json +++ b/pkgs/by-name/az/azure-cli/extensions-generated.json @@ -1105,4 +1105,4 @@ "hash": "sha256-pzc7LTdmxDs8rq/A7du0kkKXULYsePdndgubC0I2MgY=", "description": "Microsoft Azure Command-Line Tools Workloads Extension" } -} \ No newline at end of file +} diff --git a/pkgs/by-name/az/azure-cli/extensions-tool.py b/pkgs/by-name/az/azure-cli/extensions-tool.py index 8a9d6559e32a4c..7a6a6913e2a967 100644 --- a/pkgs/by-name/az/azure-cli/extensions-tool.py +++ b/pkgs/by-name/az/azure-cli/extensions-tool.py @@ -101,6 +101,7 @@ def _write_extension_set(extensions_generated: Path, extensions: Set[Ext]) -> No ls.sort(key=lambda e: e.pname) with open(extensions_generated, "w") as f: json.dump({ext.pname: asdict(ext) for ext in ls}, f, indent=2) + f.write("\n") def _convert_hash_digest_from_hex_to_b64_sri(s: str) -> str: