Skip to content

commit: make sure deps/outs exist#4305

Merged
efiop merged 1 commit into
treeverse:masterfrom
efiop:fix-4266
Jul 30, 2020
Merged

commit: make sure deps/outs exist#4305
efiop merged 1 commit into
treeverse:masterfrom
efiop:fix-4266

Conversation

@efiop
Copy link
Copy Markdown
Contributor

@efiop efiop commented Jul 30, 2020

Fixes #4266

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

Comment thread dvc/dependency/repo.py Outdated
Comment on lines 70 to 73
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This status hack backfired a bit. Need to set self.tree properly here (it will pretty much be RepoTree for the external repo that this belongs to), so that things like self.exists() work automatically.

Comment thread dvc/output/base.py
self.info = self.save_info()

def commit(self):
assert self.info
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added this because https://github.com/iterative/dvc/blob/2f48bb4089c25c2144fa3c9d9d8d0ba69c4c3e51/dvc/cache/base.py#L280 shouldn't be there, really. It is a leftover from erepo/tree hacks we used to have, but some code is still using it, so need to get back to it in a separate PR.

@efiop efiop requested review from pmrowla and skshetry July 30, 2020 03:04
@efiop efiop merged commit 9592246 into treeverse:master Jul 30, 2020
efiop pushed a commit to efiop/dvc that referenced this pull request Jul 31, 2020
This is incorrect and leads to weird bugs like treeverse#4305
efiop added a commit that referenced this pull request Jul 31, 2020
* cache: don't make save() compute the hash

This is incorrect and leads to weird bugs like #4305

* tree: get rid of explicit tree arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'NoneType' object is not subscriptable

2 participants