Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup individual repositories after scanning #614

Merged
merged 2 commits into from
Jun 10, 2022

Conversation

trufflesteeeve
Copy link
Collaborator

The deferred os.RemoveAlls mean that anytime there's a scan of a lot of repositories, they won't be deleted from disk until the entire scan is done. This fixes that.

But it also changes some behavior - currently if there's an error getting or scanning a repo, the scan ends. Should we keep that? I can easily change this to do so. Or should it log the issue and continue scanning, as I've currently implemented it? (Though for directories, the current behavior remains in place)

@dustin-decker
Copy link
Contributor

We should probably preserve the current behavior. That can still be done with these anonymous functions.

@trufflesteeeve trufflesteeeve merged commit e123e9f into main Jun 10, 2022
@trufflesteeeve trufflesteeeve deleted the cleanup-repo-after-scan branch June 10, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants