From 935f4a9fe38d8e9589f9886dfa7c13f1f5bc14c7 Mon Sep 17 00:00:00 2001 From: Joe Wang Date: Wed, 11 Dec 2024 19:08:18 -0500 Subject: [PATCH] ignore cleanup error --- hermetic_build/common/model/config_change.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermetic_build/common/model/config_change.py b/hermetic_build/common/model/config_change.py index 10edab2873..fd1b0aca6a 100644 --- a/hermetic_build/common/model/config_change.py +++ b/hermetic_build/common/model/config_change.py @@ -105,7 +105,7 @@ def get_qualified_commits( :param repo_url: the repository contains the commit history. :return: QualifiedCommit objects. """ - with tempfile.TemporaryDirectory() as tmp_dir: + with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmp_dir: # we only need commit history, thus a shadow clone is enough. repo = Repo.clone_from(url=repo_url, to_path=tmp_dir, filter=["blob:none"]) commit = repo.commit(self.current_config.googleapis_commitish)