Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion dvc/stage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,12 @@ def remove(self, force=False, remove_outs=True, purge=True):
@rwlocked(read=["deps"], write=["outs"])
def reproduce(self, interactive=False, **kwargs):
if not (kwargs.get("force", False) or self.changed()):
logger.info("Stage '%s' didn't change, skipping", self.addressing)
if not isinstance(self, PipelineStage) and self.is_data_source:
logger.info("'%s' didn't change, skipping", self.addressing)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should not this be foo didn't change rather foo.dvc?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought the same @skshetry but changed my mind on the argument that as .dvc files maintain the updates in the original files hence mentioning foo.dvc rather than foo sounded logical to me.

Also .dvc files are kind of representatives of the original files so using them in the place of original ones should be good IMHO.

else:
logger.info(
"Stage '%s' didn't change, skipping", self.addressing
)
return None

msg = (
Expand Down