Skip to content

pipenv uninstall --all updates Pipfile.lock #6510

@dan-hook

Description

@dan-hook

Issue description

As documented, running pipenv uninstall --all removes install packages and does not update the Pipfile. It does however update the Pipfile.lock to a lock file with empty dependencies, This means that subsequent calls to pipenv install result in nothing being installed.

Expected result

pipenv uninstall --all should, as documented, "Purge all package(s) from virtualenv. Does not edit Pipfile."
Additionally, it should not update the Pipfile.lock.

Actual result

All dependencies are removed from Pipfile.lock

Steps to replicate

Make sure a Pipfile.lock does not exist.

Run pipenv install

Verify that Pipfile.lock has dependencies.

Run pipenv uninstall --all

Verify that Pipfile.lock has been updated to have no dependencies.


$ pipenv --support Pipenv version: '2025.0.4' Pipenv location: '/usr/local/py-utils/venvs/pipenv/lib/python3.11/site-packages/pipenv' Python location: '/usr/local/py-utils/venvs/pipenv/bin/python' OS Name: 'posix' User pip version: '25.1.1' user Python installations found: - 3.11.14: /usr/local/python/current/bin/python3 - 3.11.14: /usr/local/python/current/bin/python - 3.10.6: /usr/bin/python3 - 3.10.6: /bin/python3 PEP 508 Information: {'implementation_name': 'cpython', 'implementation_version': '3.11.14', 'os_name': 'posix', 'platform_machine': 'x86_64', 'platform_python_implementation': 'CPython', 'platform_release': '6.6.87.2-microsoft-standard-WSL2', 'platform_system': 'Linux', 'platform_version': '#1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025', 'python_full_version': '3.11.14', 'python_version': '3.11', 'sys_platform': 'linux'} System environment variables: - COLORTERM - VSCODE_DEBUGPY_ADAPTER_ENDPOINTS - NVM_INC - TERM_PROGRAM_VERSION - HOSTNAME - JAVA_HOME - PYDEVD_DISABLE_FILE_VALIDATION - SDKMAN_CANDIDATES_DIR - SDKMAN_BROKER_API - PWD - PIPX_BIN_DIR - GITHUB_SHA - BUNDLED_DEBUGPY_PATH - VSCODE_GIT_ASKPASS_NODE - GITHUB_REF - HOME - LANG - LS_COLORS - NVM_SYMLINK_CURRENT - ARTIFACTORY_PASSWORD - GIT_ASKPASS - VSCODE_GIT_IPC_AUTH_TOKEN - DOCKER_BUILDKIT - PYTHON_PATH - NVM_DIR - VSCODE_GIT_ASKPASS_EXTRA_ARGS - LESSCLOSE - TERM - LESSOPEN - USER - VSCODE_GIT_IPC_HANDLE - PIPX_HOME - MAVEN_HOME - SDKMAN_DIR - SHLVL - NVM_CD_FLAGS - GIT_EDITOR - PROMPT_DIRTRIM - ARTIFACTORY_USERNAME - SDKMAN_CANDIDATES_API - PYENV_ROOT - VSCODE_GIT_ASKPASS_MAIN - BROWSER - PATH - SDKMAN_PLATFORM - NVM_BIN - OLDPWD - TERM_PROGRAM - VSCODE_IPC_HOOK_CLI - _ - PIP_DISABLE_PIP_VERSION_CHECK - PYTHONDONTWRITEBYTECODE Pipenv–specific environment variables: Debug–specific environment variables: - PATH: /opt/liquibase:/home/vscode/bin:/home/vscode/.cursor-server/bin/dc8361355d709f306d5159635a677a571b277bc0/bin/remote-cli:/home/vscode/.local/bin:/home/vscode/bin:/opt/liquibase:/home/vscode/bin:/home/vscode/.pyenv/bin:/home/vscode/.sdkman/candidates/maven/current/bin:/home/vscode/.sdkman/candidates/java/current/bin:/home/vscode/.cursor-server/bin/dc8361355d709f306d5159635a677a571b277bc0/bin/remote-cli:/usr/local/python/current/bin:/usr/local/py-utils/bin:/usr/local/jupyter:/usr/local/share/nvm/versions/node/v24.13.0/bin:/home/vscode/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.cursor-server/extensions/ms-python.debugpy-2025.18.0-linux-x64/bundled/scripts/noConfigScripts - LANG: en_US.UTF-8 - PWD: /workspaces/gene-panel-api/project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions