Skip to content

Commit

Permalink
fix(resolution): VCS locks don't update when the rev part changes
Browse files Browse the repository at this point in the history
Close #1640
  • Loading branch information
frostming committed Jan 28, 2023
1 parent b75c72d commit fe9b485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/1640.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug that VCS locks don't update when the rev part changes.
4 changes: 2 additions & 2 deletions src/pdm/resolver/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ def is_satisfied_by(self, requirement: Requirement, candidate: Candidate) -> boo
if not requirement.is_named:
backend = self.repository.environment.project.backend
return not candidate.req.is_named and backend.expand_line(
url_without_fragments(candidate.req.url) # type: ignore
url_without_fragments(candidate.req.get_full_url()) # type: ignore
) == backend.expand_line(
url_without_fragments(requirement.url) # type: ignore
url_without_fragments(requirement.get_full_url()) # type: ignore
)
version = candidate.version
this_name = self.repository.environment.project.name
Expand Down

0 comments on commit fe9b485

Please sign in to comment.