Skip to content

Commit

Permalink
fix: remove file not found status
Browse files Browse the repository at this point in the history
  • Loading branch information
xxthunder authored and cuinixam committed Jun 20, 2024
1 parent 8575a47 commit c69c464
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit c69c464

Please sign in to comment.