Allow using cloned VCS (git) repositories for update
and lock
instead of cloning it to /tmp
all the time to save on data traffic
#3420
Labels
Feature Request
For large git repositories, cloning them all the time takes a considerable amount of time. I have a dependency in git that is 1.8Gb in size. Every
poetry update
and similar calls results in a full clone of that repository to /tmp, even withdevelop=True
in the dependency config. Even on a decent internet connection that takes a lot of time. It would be a lot faster if there was an option that would cause poetry to clone that repository to a dedicated folder and just do a git pull on it, instead of a full clone to/tmp
.I am thinking of 2 options:
develop=True
make sure to just clone to{virtualenv.path}/src
directory if the package isn't there yet, or do agit pull
there if it does exist, and use that directory in theupdate
command.keep_source
to the dependency config that makespoetry update
use the checked out code in{virtualenv.path}/src
for the update (or check it out if it's not there yet).The text was updated successfully, but these errors were encountered: