-
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
pull: Failed to pull data from the cloud. <filename> is git-ignored. #5396
Comments
@benjamintanweihao, could you please share the reason why you add the directory to DVC already adds the tracked directory to the |
That was done before we used dvc. Even if dvc were to add an entry to the
gitignore file, it should have the same effect.
…On Wed, Feb 3, 2021 at 5:02 PM Saugat Pachhai ***@***.***> wrote:
@benjamintanweihao <https://github.com/benjamintanweihao>, could you
please share the reason why you add the directory to .gitignore?
DVC already adds the tracked directory to the .gitignores.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5396 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGSINH5P3NY3NN7ERQ6QD3S5EGLRANCNFSM4XAMMJOQ>
.
|
Hi @benjamintanweihao, is it possible to exclude those |
Up |
@macio232, could you please provide more details? How is it affecting you? And, is that possible to unignore them? Thanks. 🙂 |
Actually, all the details are in the first post :) Files/directories added to I was testing on the pre-release version mentioned in the first post here, and I don't know if the bug (or feature) is present in the latest version (which is 2.0.5 while typing). I can not verify this because I no longer have access to the project. |
@macio232 That behaviour was introduced in 2.0 intentionally. You need to exclude corresponding *.dvc (or dvc.yaml) files from .gitignore, otherwise dvc won't be able to discover them. |
We have the following scenario:
We have a bunch of DVC-tracked files in a folder called "resources", where
we want to make sure that developers do not accidentally git commit and
push. Therefore, the "resources" folder is git-ignored. Of course, this
means that when we commit the *.dvc files we would have to do a git add -f
but this is a small price to pay instead of having to do a
git-filter-branch when someone accidentally commits a 100MB file into the
master branch.
…On Sat, Mar 13, 2021 at 8:43 AM Ruslan Kuprieiev ***@***.***> wrote:
Just to clarify: we've started ignoring such dvcfiles in 2.0 to improve
the performance #5265 <#5265>
@macio232 <https://github.com/macio232> Would it be possible to unignore
those dvcfiles in your scenario?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5396 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGSING7C2X657WMN3QI77LTDKYLXANCNFSM4XAMMJOQ>
.
|
@efiop exactly as @benjamintanweihao wrote - the usual strategy is to put the whole Moreover, I have the |
@macio232 @benjamintanweihao Would it be possible to add an exclusion rule only for *.dvc and dvc.yaml?
|
Yes! I think this is a solution, and I feel stupid I didn't think of it myself :) Thank you @efiop ! |
Hello @efiop, what was the exclusion rule? I am not sure why did it disappear. |
Bug Report
Description
I tested this between DVC versions 1.11 and 2.0. My setup is the following:
I have a folder called
env/resources
where I store Tensorflow binaries which are tracked by DVC.env/resources
is alsogit
-ignored.When I do
dvc pull
in earlier versions of DVC (i.e 1.x) everything works as expected. However, when I do the same in version 2, I getpull: Failed to pull data from the cloud. <filename> is git-ignored.
Reproduce
Example:
.gitignore
.Expected
dvc
should have let mepull
in the file even though the directory isgit
-ignored.Environment information
Output of
dvc version
:The text was updated successfully, but these errors were encountered: