Skip to content

Commit

Permalink
Avoid lock timeout during install
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Dec 31, 2024
1 parent 29daea9 commit 7a13c2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vcpkg_precommit/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7a13c2e

Please sign in to comment.