python-poetry / python-poetry/poetry-plugin-bundle
using dot as the path crashes while deleting the current folder
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 151
- Forks
- 30
- Avg merge
- 48m
- Merged PRs (30d)
- 5
Description
Using windows WSL2 with debian and python3.7, I just migrated to poetry 1.2.2 and wanted to try the new bundle plugin that would allow me to build faster in my CI.
I innocently typed
poetry bundle venv .
as I wanted the bundle to be in the current folder. The command started and showed
Bundling xxx_gateway (1.1.1) into .: Removing existing virtual environment
and then
[Errno 22] Invalid argument: '.'
In the meantime my folder had been emptied (no consequence git was here)
I think other people could try to bundle in there local folder so I suggest adding an exception for the dot path. Maybe using ./bundle as a default could be interesting in some automation process as well.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the poetry bundle venv command and trace how the destination . is handled before an existing virtual environment is removed. Done means bundling to the current folder no longer empties or crashes on that folder, with behavior for the suggested destination handling made explicit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100