From 2234882af8ceb35655e0c35a4afe6bf8d482b78f Mon Sep 17 00:00:00 2001 From: Joe Wang Date: Thu, 12 Dec 2024 11:44:12 -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 9a2e87f84e..08f9400b55 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)