"poetry build" command is logging "fatal" errors when not inside a git repo #8728
Closed
4 tasks done
Labels
kind/bug
Something isn't working as expected
-vvv
option) and have included the output below.Issue
Consider this very simple project:
The python file can be totally empty.
The pyproject.toml is
Note this is NOT a git repo, there is no
.git
folder. Now when I executepoetry build -vvv
I get these "fatal" errors complaining about the fact that we are not in a git repo:It looks like it still produced the targets however the fatal errors are tripping devops warning bells and causing me headaches.
If I just do a
git init
then the problem goes away.Why would
poetry build
care if it is running inside a git repo or not?This happens with multiple releases of poetry (1.7.1, 1.6.1) and in various environments (in Docker containers, and in my mac in a conda environment) so I think it must be something fundamental I am not understanding, or else considered a bug that maybe nobody has noticed?
The text was updated successfully, but these errors were encountered: