We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 900ecb4 commit 816b2eaCopy full SHA for 816b2ea
1 file changed
lib/octocatalog-diff/catalog/computed.rb
@@ -89,7 +89,13 @@ def environment
89
def cleanup_checkout_dir(checkout_dir, logger)
90
return unless File.directory?(checkout_dir)
91
logger.debug("Cleaning up temporary directory #{checkout_dir}")
92
- FileUtils.remove_entry_secure checkout_dir
+ # Sometimes this seems to break when handling the recursive removal when running under
93
+ # a parallel environment. Trap and ignore the errors here if we don't care about them.
94
+ begin
95
+ FileUtils.remove_entry_secure checkout_dir
96
+ rescue Errno::ENOTEMPTY, Errno::ENOENT => exc
97
+ logger.debug "cleanup_checkout_dir(#{checkout_dir}) logged #{exc.class} - this can be ignored"
98
+ end
99
end
100
101
# Private method: Bootstrap a directory
0 commit comments