Skip to content

Commit

Permalink
Merge pull request #6135 from nitintecg/issue-6126
Browse files Browse the repository at this point in the history
Fix the issue(#6126): add lockfile_path presence in pipenv check command
  • Loading branch information
matteius committed Apr 27, 2024
2 parents b1c14a2 + 796f899 commit 6868c81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/6126.bugfix.rst
@@ -0,0 +1 @@
Fix a bug that passes pipenv check command if Pipfile.lock not exist
3 changes: 3 additions & 0 deletions pipenv/routines/check.py
Expand Up @@ -133,6 +133,9 @@ def do_check(
else:
if not quiet and not project.s.is_quiet():
click.secho("Passed!", fg="green")
# Check for lockfile exists
if not project.lockfile_exists:
return
if not quiet and not project.s.is_quiet():
if use_installed:
click.secho(
Expand Down

0 comments on commit 6868c81

Please sign in to comment.