-
Notifications
You must be signed in to change notification settings - Fork 1.2k
deps is inconsistent between dvc.yaml and .dvc files #5370
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
Comments
@antonkulaga, the old
|
@skshetry I was not talking about having stages in .dvc files, but having:
inside of the dependencies in dvc.yaml So far only "str" is supported for deps in dvc.yaml, I believe it should also support etags for external dependencies |
This was loosened when introducing parametrization. But, `foreach`..`do` should be considered first before stage's regular structure. And, cmd is made required (as it should have been) Related: iterative#5371, iterative#5370, iterative#5312
@antonkulaga, the checksums are kept in lockfile. You just have to write the entry as follows and then stages:
download_file:
cmd: curl https://github.com/api/repos/iterative/dvc -s > data.json
deps:
- https://github.com/api/repos/iterative/dvc
metrics:
- data.json
|
@skshetry I think the problem is that in the docs you talk a lot about editing .dvc files and barely mention editing of dvc.lock |
When I have something like:
It works find in .dvc files, but when I add it to one of the stages, I get an error as it assumes deps are string only.
the error is:
the dvc version is 1.11.10 (latest .deb file).
I suggest that "deps" should behave the same in .dvc and dvc.yaml as otherwise it creates a lot of confusion.
The text was updated successfully, but these errors were encountered: