From c0816d1c4a919b47ccbb1f97aedfd5ed87abb348 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 24 Jan 2017 15:55:04 -0500 Subject: [PATCH] fix bug with lock --- pipenv/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 4cc36bff..187abfbc 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -102,8 +102,8 @@ def do_install_dependencies(dev=False, only=False, bare=False, allow_global=Fals # Load the Pipfile. p = pipfile.load(project.pipfile_location) - # Load the lockfile if it exists, else use the Pipfile as a seed. - if not project.lockfile_exists: + # Load the lockfile if it exists, or if only is being used (e.g. lock is being used). + if only or not project.lockfile_exists: if not bare: click.echo(crayons.yellow('Installing dependencies from Pipfile...')) lockfile = json.loads(p.lock())