RepoDependency: never changed#4209
Conversation
d7cabf1 to
5d57706
Compare
5d57706 to
f2010f7
Compare
skshetry
left a comment
There was a problem hiding this comment.
Do we need a test for this? Otherwise, looks good to me.
|
@skshetry |
f2010f7 to
5ea6ba3
Compare
5ea6ba3 to
624f2d1
Compare
|
@skshetry I created test |
| with dvc.state: | ||
| assert stage.changed_entries() == ([], [], None) |
There was a problem hiding this comment.
Won't it show up on dvc.status?
There was a problem hiding this comment.
IIRC these are not used by status but by commit to show prompt message on what's changed.
There was a problem hiding this comment.
@skshetry is right, in case of commit we check whether changed_checksum for RepoDependency changed. Upon status, we actually get the checksum for the file from the external repo, to get information on whether it has been updated.
❗ 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.
❌ 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 #4205