Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep git repositories checked out #3414

Closed
2 tasks done
dolfandringa opened this issue Nov 25, 2020 · 4 comments
Closed
2 tasks done

Keep git repositories checked out #3414

dolfandringa opened this issue Nov 25, 2020 · 4 comments

Comments

@dolfandringa
Copy link

This may be a feature request, but didn't want to open one without knowing for sure it's not possible already.

TLDR: is it possible to keep VCS dependencies checked out in a src folder insgtead of requiring it to be checked out for every poetry update or poetry install?

So I have a package that depends on a pacakage from another git repository. That git repository is 1.8Gb in size. On top of that I am dealing with rate limiting from github which often limits my git checkouts to 10KB/s (don't know why). That last part is solved with a VPN, but even without the rate limiting, it would really save a lot of time when reinstalling dependencies multiple times if there was an option to keep VCS dependencies checked out in some src folder and just git pull/fetching updates, instead of checking out the whole repository again and again to /tmp. Is this possible somehow?

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Issue

@sinoroc
Copy link

sinoroc commented Nov 25, 2020

Makes somewhat sense. Don't know what the current behaviour (internally) exactly is, though. Have you tried setting develop = true on those git dependencies? Also maybe there are improvement that could be made in poetry so that only a single commit is fetched (or at least not the whole repository, although maybe poetry already fetches selectively, I don't know).

@dolfandringa
Copy link
Author

When I set develop=true on that repository and then run a poetry update it still runs this git command:
git clone --recurse-submodules http://github.com/dolfandringa/KivyMD.git /tmp/pypoetry-git-KivyMDivv85z7iso the full checkout in /tmp. And every subsequent run I guess will do the same again.

@dolfandringa
Copy link
Author

I made a feature request for this: #3420

Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants