From 7a13c2ed1ecf3c59dfbf6d6d39a18424444424cb Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Tue, 31 Dec 2024 08:19:55 +0100 Subject: [PATCH] Avoid lock timeout during install --- vcpkg_precommit/hook.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vcpkg_precommit/hook.py b/vcpkg_precommit/hook.py index 5620486..cf1cad5 100644 --- a/vcpkg_precommit/hook.py +++ b/vcpkg_precommit/hook.py @@ -40,7 +40,9 @@ def get_vcpkg_binary() -> Path: def format_manifest_vcpkg_json(filename: str, vcpkg_binary: Path) -> bool: """Format a single vcpkg.json file.""" result = subprocess.run( - [str(vcpkg_binary), "format-manifest", filename], capture_output=True, text=True + [str(vcpkg_binary), "format-manifest", "--x-wait-for-lock", filename], + capture_output=True, + text=True, ) if result.returncode != 0: