-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
import/update: cache git repos/clones #3496
Comments
The thing is cache is not persisted between |
yes; this is about making it persistent & pulling rather than re-cloning. |
What about a repo cache at the user level? Could be a system config var so you can disable it, like analytics.
|
in light of #4246 being merged going to downgrade priority here... |
Persistent clones (as per #10511) are different from shallow clones (as per #4246). Persistent clones would also allow us to separate cloning (which requires connectivity) from other dvc operations (which don't). This would allow us to do the former in an environment (queue) with connectivity and the latter in environments without. |
@johnyaku Have you considered keeping a clone on a shared space of the HPC so you can import from there instead of from the internet? Even if dvc had some support for caching clones, it would likely still need to check the internet to fetch updates from those clones. If you have your own clone of the repo, you can fully control when to update it and everyone can share that single repo copy (dvc will not make a new clone of a local repo). |
@dberenbaum I've been thinking along the same lines. We could maintain (and periodically update) repos on the local filesystem and specify the path to those repos instead of GitHub URLs. This would solve the no-internet access problem. But we also want to maintain portability between platforms. (We work on two different HPCs, plus GCP.) So a URL that is accessible from any platform would be better from a portability perspective. I can have calls to GitHub loopback to localhost in Happy to explore workarounds like this, or maybe dvc could keep the clones that is making already? |
The text was updated successfully, but these errors were encountered: