Skip to content

--no-scm option seems not working #2859

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

Closed
andrewBatutin opened this issue Nov 28, 2019 · 9 comments
Closed

--no-scm option seems not working #2859

andrewBatutin opened this issue Nov 28, 2019 · 9 comments
Labels
awaiting response we are waiting for your reply, please respond! :) question I have a question?

Comments

@andrewBatutin
Copy link

dvc version - 0.71.0

pkg Mac install

can't get dvc stop ignoring data files

i init repo with

dvc init --no-scm

then

dvc add data

creates .gitignore with /data folder in it

is there something wrong i'm doing ?

@ghost ghost added the triage Needs to be triaged label Nov 28, 2019
@efiop
Copy link
Contributor

efiop commented Nov 28, 2019

Hi @andrewBatutin ! --no-scm only affects dvc init. After that dvc dynamically determines if you are using git or not and if you do - it also starts using it. Could you describe your scenario, please? 🙂

@efiop efiop added the question I have a question? label Nov 28, 2019
@ghost ghost removed the triage Needs to be triaged label Nov 28, 2019
@efiop efiop added awaiting response we are waiting for your reply, please respond! :) triage Needs to be triaged labels Nov 28, 2019
@ghost ghost removed the triage Needs to be triaged label Nov 28, 2019
@andrewBatutin
Copy link
Author

What i want to achieve is to get .dvc file for my data folder and keep data folder in project, so it doesn't fall under gitignore settings

And i thought --no-scm option during init won't ignore files and folders i add to dvc

@efiop
Copy link
Contributor

efiop commented Nov 28, 2019

@andrewBatutin Not sure I follow. What do you mean "keep data folder in project"? You mean dvc add it, while having some git-tracked files inside?

@andrewBatutin
Copy link
Author

yes this case

i want to dvc add data and keep files inside data under git tracking

@efiop
Copy link
Contributor

efiop commented Nov 28, 2019

@andrewBatutin It is not possible, as dvc treats data as a whole directory. Maybe you could elaborate on your scenario, so we could better understand your use case and maybe suggest a better approach? 🙂

@andrewBatutin
Copy link
Author

andrewBatutin commented Nov 28, 2019 via email

@efiop
Copy link
Contributor

efiop commented Nov 28, 2019

I still don't quite understand your scenario 🙁 But happy that you've found a workaround. Please ping us if you will have any questions 🙂

@efiop efiop closed this as completed Nov 28, 2019
@shcheklein
Copy link
Member

@andrewBatutin I think what you need is to use non-cached data artifacts with DVC. It calculates checksums but does not put file into .gitignore. The command you would need is dvc run in this case:

dvc run -O data -f data.dvc

or you can use full power of it create DAG from multiple stages (all w/o caching or gitignoring files).

In this case you have git to version your actual files but also you have DVC to create .dvc files to capture checksums, etc. I see that it can be helpful if you want to use only pipelines for examples, w/o storing data with DVC>

@andrewBatutin
Copy link
Author

andrewBatutin commented Nov 29, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response we are waiting for your reply, please respond! :) question I have a question?
Projects
None yet
Development

No branches or pull requests

3 participants