Dvc: Implement `--no-exec` option for `import-url` command

Created on 19 Mar 2020  路  4Comments  路  Source: iterative/dvc

dvc import-url creates new .dvc file, just as dvc run. Sometimes files which would be imported are already present locally and it's quite inconvenient that they should be downloaded again in order to create a pipeline step.

Because of that it would be great to add --no-exec option: we create pipeline step, then use dvc commit to update its md5 with already downloaded file.

feature request good first issue help wanted p2-medium

Most helpful comment

taking a look

All 4 comments

taking a look

I know this is kind of old! But another alternative is to create the import .dvc file manually. We've documented the spec better now so it should be doable: https://dvc.org/doc/user-guide/dvc-files-and-directories#dvc-files

That's assuming commit will calculate the eTag/MD5/checksum value...

p.s. we should probably have this option in regular import too for the same reasons and consistency (see #4567)

@jorgeorpinel good point, that's exactly what I did as a workaround actually :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pared picture pared  路  73Comments

shcheklein picture shcheklein  路  36Comments

JoeyCarson picture JoeyCarson  路  53Comments

dmpetrov picture dmpetrov  路  64Comments

yukw777 picture yukw777  路  45Comments