pipenv install does not throw an error when a Pipfile.lock is determined to be corrupt #6121
Labels
Type: Enhancement 💡
This is a feature or enhancement request.
Type: Possible Bug
This issue describes a possible bug in pipenv.
Issue description
pipenv install
printedPipfile.lock is corrupted; ignoring contents.
to standard and displayed a success message.Expected result
I expected
pipenv install
to throw an error.Actual result
The message is technically visible in the logs, but it somewhat acts as a silently passing error. This allowed me to successfully build an application only to find that none of the dependencies were installed and nothing indicating an obvious error.
Steps to replicate
pipenv install
$ pipenv --support
Pipenv version:
'2023.10.24'
Pipenv location:
'/home/evan/.local/lib/python3.11/site-packages/pipenv'
Python location:
'/bin/python3.11'
OS Name:
'posix'
User pip version:
'23.3.1'
user Python installations found:
PEP 508 Information:
System environment variables:
SHELL
PYENV_SHELL
WSL2_GUI_APPS_ENABLED
WSL_DISTRO_NAME
WT_SESSION
NAME
PWD
PYENV_VIRTUALENV_INIT
LOGNAME
HOME
LANG
WSL_INTEROP
LS_COLORS
WAYLAND_DISPLAY
LESSCLOSE
TERM
LESSOPEN
USER
DISPLAY
SHLVL
XDG_RUNTIME_DIR
PYENV_ROOT
WSLENV
XDG_DATA_DIRS
PATH
DBUS_SESSION_BUS_ADDRESS
HOSTTYPE
PULSE_SERVER
WT_PROFILE_ID
OLDPWD
_
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/evan/.pyenv/versions/3.8.10/bin:/home/evan/.pyenv/shims:/home/evan/.ebcli-virtual-env/executables:/mnt/c/Users/Evan/AppData/Local/Programs/Microsoft VS Code/bin:/home/evan/.local/bin:/home/evan/.pyenv/plugins/pyenv-virtualenv/shims:/home/evan/.pyenv/bin:/home/evan/.cargo/bin:/bin:/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/usr/local/bin:/home/evan/.local/bin
SHELL
:/bin/bash
LANG
:C.UTF-8
PWD
:/home/evan/[redacted]
The text was updated successfully, but these errors were encountered: