Skip to content

Commit

Permalink
Fix the issue(pypa#6126): add lockfile_path presence in pipenv check …
Browse files Browse the repository at this point in the history
…command
  • Loading branch information
nitintecg committed Apr 25, 2024
1 parent 7a26536 commit 796f899
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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 796f899

Please sign in to comment.