From 2b86470d90d21dda710fdcbf7e84679ea9c26fbd Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 5 Nov 2020 10:28:23 +0800 Subject: [PATCH] Consider VCS or file dependency as not satisfied --- news/4387.bugfix.rst | 1 + pipenv/environment.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 news/4387.bugfix.rst diff --git a/news/4387.bugfix.rst b/news/4387.bugfix.rst new file mode 100644 index 00000000..a17b5690 --- /dev/null +++ b/news/4387.bugfix.rst @@ -0,0 +1 @@ +Fix a bug that VCS dependencies always satisfy even if the ref has changed. diff --git a/pipenv/environment.py b/pipenv/environment.py index 508b615e..88c6dbb0 100644 --- a/pipenv/environment.py +++ b/pipenv/environment.py @@ -790,6 +790,8 @@ class Environment(object): vcs_type == req.vcs and commit_id == req.commit_hash and direct_url_metadata["url"] == pipfile_part[req.vcs] ) + elif req.is_vcs or req.is_file_or_url: + return False elif req.line_instance.specifiers is not None: return req.line_instance.specifiers.contains( match.version, prereleases=True