Skip to content

Commit

Permalink
wth
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolsson committed Feb 11, 2023
1 parent ce632d8 commit 1efca1d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/pdm-plugin-torch/src/pdm_plugin_torch/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ def is_lockfile_hash_match(project: Project, lock_name: str) -> bool:
return False

algo, hash_value = hash_in_lockfile.split(":")
content_hash = project.get_content_hash(algo)
if is_pdm22:
content_hash = project.get_content_hash(algo)
else:
content_hash = project.pyproject.content_hash(algo)

return content_hash == hash_value


Expand Down

0 comments on commit 1efca1d

Please sign in to comment.