diff --git a/bootstrap.py b/bootstrap.py index 5747242..d59d78a 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -120,7 +120,6 @@ def get_outputs(self) -> List[Path]: class RunInfoStatus(Enum): MATCH = (False, "Nothing has changed, previous execution information matches.") NO_INFO = (True, "No previous execution information found.") - FILE_NOT_FOUND = (True, "Dependencies have been removed.") FILE_CHANGED = (True, "Dependencies have been changed.") def __init__(self, should_run: bool, message: str) -> None: @@ -178,9 +177,7 @@ def previous_run_info_matches(self, runnable: Runnable) -> RunInfoStatus: for file_type in ["inputs", "outputs"]: for path_str, previous_hash in previous_info[file_type].items(): path = Path(path_str) - if not path.exists(): - return RunInfoStatus.FILE_NOT_FOUND - elif self.get_file_hash(path) != previous_hash: + if self.get_file_hash(path) != previous_hash: return RunInfoStatus.FILE_CHANGED return RunInfoStatus.MATCH