Skip to content

Previous import stage disappears on import failure #3362

@skshetry

Description

@skshetry
$ dvc import /path/to/existing/repo file
$ ls
file file.dvc
$ dvc import /path/to/not-existing/repo file
$ test -f file.dvc || echo $? # no files or import stages
1

Same thing happens when the repo is valid but the file does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDid we break something?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions