poetry icon indicating copy to clipboard operation
poetry copied to clipboard

Account for symlinked .venv when removing

Open vibe opened this issue 5 years ago • 0 comments

Pull Request Check List

Resolves: Sometimes the .venv is a symlink, such as in caching strategies for CI/CD environments (codebuild, etc)
Related: https://github.com/python-poetry/poetry/pull/2064

We are already asserting the file path is a directory, so if OS Error 20 is triggered, which is "Not a directory" we simply delete everything but the top level folder.

  • [ X] Added tests for changed code.
  • [ X] Updated documentation for changed code.

vibe avatar Nov 18 '20 07:11 vibe