Skip to content

Commit af4e562

Browse files
committed
Fix Manisfest
1 parent 507236a commit af4e562

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cppython/plugins/vcpkg/resolution.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ def generate_manifest(core_data: CorePluginData, data: VcpkgData) -> Manifest:
2828
# If builtin_baseline is None, we set it to the current commit of the cloned vcpkg repository
2929
if data.builtin_baseline is None:
3030
try:
31+
cwd = core_data.cppython_data.install_path
32+
3133
# Get the current commit hash from the vcpkg repository
32-
result = check_output(['git', 'rev-parse', 'HEAD'], cwd=str(core_data.project_data.project_root))
34+
result = check_output(['git', 'rev-parse', 'HEAD'], cwd=cwd)
3335
data.builtin_baseline = result.decode('utf-8').strip()
3436
except (CalledProcessError, FileNotFoundError) as e:
3537
raise ConfigException('Failed to get the current commit hash from the vcpkg repository.', []) from e

examples/vcpkg_cmake/simple/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ provider-name = "vcpkg"
2222
install-path = "install"
2323

2424
dependencies = [
25-
"fmt>=11.1.0",
25+
"fmt>=11.0.2",
2626
]
2727

2828
[tool.cppython.generator]

0 commit comments

Comments
 (0)