-
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
Error when re-importing a renamed directory #3339
Comments
This doesn't seem to be a problem with importing files, only directories |
This seems to occur because the import command behaves differently if there's already an output directory or not. If I call e.g. If however, I call it in a directory which already contains a subdir called It's this changed behaviour that causes the reimport to fail, since the dvc file that it creates has a different name to the first run, so it's a duplicated output. |
Full trace:
|
@charlesbaynham, this is clearly mentioned in the docs (i know, it's not what you'd expect, and this is an edge-case that happened when re-importing).
With #3337, |
Hi @skshetry , Ah thanks for that, sorry I missed it in the docs. Happy to close this issue therefore. Those changes to
Do you know of a way to correctly reimport a directory? |
@charlesbaynham Thanks for your patience, notification got lost in the flow :) Your command is correct, but as @skshetry noted, |
DVC 0.84.0, Mac, conda installation
Summary
When re-importing a directory from a git repository having specified an alternative output, dvc fails with an "overlapping outs" error. This does not occur if the output directory was not renamed.
Reproduction
The following code sets up a source git repo with a subdirectory and a dvc repo which imports from it. It
Expected behavior
No error.
Actual behaviour
ERROR: failed to import 'src' from '../source_repo'. - Paths for outs: 'src_renamed'('src_renamed.dvc') 'src_renamed/src'('src.dvc') overlap. To avoid unpredictable behaviour, rerun command with non overlapping outs paths.
The text was updated successfully, but these errors were encountered: