Skip to content

Commit

Permalink
Update vcpkg_precommit/hook.py
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored Jan 5, 2025
1 parent 375aad7 commit 21770eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcpkg_precommit/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_vcpkg_binary() -> Path:

def format_manifest_vcpkg_json(filename: str, vcpkg_binary: Path) -> bool:
"""Format a single vcpkg.json file."""
os.environ["VCPKG_ROOT"] = tempfile.TemporaryDirectory()
os.environ["VCPKG_ROOT"] = tempfile.TemporaryDirectory().name
result = subprocess.run(
[str(vcpkg_binary), "format-manifest", "--x-wait-for-lock", filename],
capture_output=True,
Expand Down

0 comments on commit 21770eb

Please sign in to comment.