Skip to content

import: fix output message on not-existing output directory#3509

Merged
efiop merged 1 commit into
treeverse:masterfrom
skshetry:import-not-existing-path
Mar 19, 2020
Merged

import: fix output message on not-existing output directory#3509
efiop merged 1 commit into
treeverse:masterfrom
skshetry:import-not-existing-path

Conversation

@skshetry
Copy link
Copy Markdown
Collaborator

@skshetry skshetry commented Mar 19, 2020

  • ❗ I have followed the Contributing to DVC checklist.

  • 📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. If the CLI API is changed, I have updated tab completion scripts.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

Fixes #3338

b07a982 fixes exception message, i.e. removes stage working or file path confusion. It's either of those two now.

@skshetry skshetry added the bug Did we break something? label Mar 19, 2020
@skshetry skshetry requested review from Suor, efiop, pared and pmrowla March 19, 2020 09:32
@skshetry skshetry self-assigned this Mar 19, 2020
Comment thread dvc/repo/imp_url.py Outdated
@skshetry skshetry force-pushed the import-not-existing-path branch from 1915943 to b07a982 Compare March 19, 2020 11:55
Comment thread dvc/stage.py
path = os.path.abspath(fname)

Stage._check_stage_path(repo, wdir)
Stage._check_stage_path(repo, wdir, is_wdir=kwargs.get("wdir"))
Copy link
Copy Markdown
Collaborator Author

@skshetry skshetry Mar 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only throw error with message "stage working dir" for dvc.run() cases where wdir is explicitly set.

@skshetry skshetry changed the title import: create directory if out does not exist import: fix output message on not-existing output directory Mar 19, 2020
@efiop efiop merged commit 84760dc into treeverse:master Mar 19, 2020
@skshetry skshetry deleted the import-not-existing-path branch March 19, 2020 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Did we break something?

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect error message when importing to non-existent folder

3 participants