Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uninstall --all fails when venv is deleted #6250

Merged
merged 8 commits into from
Sep 23, 2024

Conversation

Naofal-Helal
Copy link
Contributor

@Naofal-Helal Naofal-Helal commented Sep 22, 2024

The issue

This is a regression where pipenv uninstall --all fails when the venv does not exist.

The solution

Add a check to make sure the environment is valid (venv exists).

ref #6185

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix.rst, .feature.rst, .behavior.rst, .doc.rst. .vendor.rst. or .trivial.rst (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

@Naofal-Helal Naofal-Helal marked this pull request as ready for review September 22, 2024 11:01
@Naofal-Helal Naofal-Helal changed the title Add test case Fix uninstall --all fails when venv is deleted Sep 22, 2024
pipenv/environment.py Outdated Show resolved Hide resolved
@matteius matteius merged commit fbecd8e into pypa:main Sep 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants