poetry-plugin-bundle icon indicating copy to clipboard operation
poetry-plugin-bundle copied to clipboard

using dot as the path crashes while deleting the current folder

Open Cajuteq opened this issue 3 years ago • 0 comments

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.

Cajuteq avatar Oct 24 '22 16:10 Cajuteq