mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Fix get_hash method
This commit is contained in:
+1
-1
@@ -1218,7 +1218,7 @@ def do_init(
|
||||
if (project.lockfile_exists and not ignore_pipfile) and not skip_lock:
|
||||
old_hash = project.get_lockfile_hash()
|
||||
new_hash = project.calculate_pipfile_hash()
|
||||
if new_hash.value != old_hash:
|
||||
if new_hash != old_hash:
|
||||
if deploy:
|
||||
click.secho(
|
||||
"Your Pipfile.lock ({}) is out of date. Expected: ({}).".format(
|
||||
|
||||
+1
-1
@@ -1011,7 +1011,7 @@ class Project:
|
||||
def calculate_pipfile_hash(self):
|
||||
# Update the lockfile if it is out-of-date.
|
||||
p = plette.Pipfile.load(open(self.pipfile_location))
|
||||
return p.get_hash()
|
||||
return p.get_hash().value
|
||||
|
||||
def ensure_proper_casing(self):
|
||||
"""Ensures proper casing of Pipfile packages"""
|
||||
|
||||
Reference in New Issue
Block a user