-
Notifications
You must be signed in to change notification settings - Fork 432
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
Clone fails if source has LFS files #1462
Comments
Sorry, I'm totally new to LFS. I'm open to PRs on this, but don't have time to investigate further right now. It seems like there could/should be a way to tell conda-build to bypass the cache as the fastest possible solution here. |
Allowing packages to disable the cache seems like a totally adequate solution for now. I'll look into a PR. |
Sorry to pick back up on this old thread, but I'm running into this issue and based on the threads I've seen I'm not sure how to get around it until the proposed fixes are integrated. Is there an accepted workaround for this problem? I'm trying to build a package that has some LFS files tracked and the only way I've been able to do it is to branch and strip it all out when I need to make a new release, which is very not fun. Cheers. |
I also ran into this problem. A workaround is to use a pip install as the source repo. In order for this to work, you do have to create the pypi package first. This worked for me though! |
Use pypi to avoid git-lfs conda-build error. See: conda/conda-build#1462
There should be an option somewhere in |
I also encountered this issue, so I decided to dive into this and I found a solution! The problem consists of two parts:
|
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
I still see this error with conda-build 3.24.0 in conda-forge/staged-recipes#17082 for trying to pull in a submodule of torchaudio...
which fails with:
Is it possible that #4318 did not enable the |
Due to git-lfs/git-lfs#1207 , cloning from a local repo fails if it contains files stored in git-lfs. Since conda-build seems to always clone to a cache first, then clone from there for the build (logical), repos storing files in LFS fail with errors like:
where the error in the log has a key phrase, such as
unsupported protocol scheme ""
.If there were a way to mark these sources as not-cacheable (or if anyone has an idea for how to make the lfs fetches work), that would help me.
The text was updated successfully, but these errors were encountered: