From eb3b3c75b4b86d0537cbeaae55984ad4bf71a53f Mon Sep 17 00:00:00 2001 From: Rex P <106129829+another-rex@users.noreply.github.com> Date: Wed, 8 Nov 2023 12:57:53 +1100 Subject: [PATCH] Skip cleaning older versions for now (#1801) Skip cleaning older versions for now, until we update osv-scanner and indexer scanning tools to also ignore vendor folders. --- .gitignore | 3 ++- docker/indexer/stages/processing/processing.go | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index dffd7ce1f84..a8337e70069 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ __pycache__/ build/lib .vscode *.tfstate* -.history/* \ No newline at end of file +.history/* +**/.history/* \ No newline at end of file diff --git a/docker/indexer/stages/processing/processing.go b/docker/indexer/stages/processing/processing.go index bef59c57539..7682bd8c6b2 100644 --- a/docker/indexer/stages/processing/processing.go +++ b/docker/indexer/stages/processing/processing.go @@ -181,8 +181,10 @@ func (s *Stage) processGit(ctx context.Context, repoInfo *preparation.Result) er return err } - log.Info("begin cleaning old versions") - return s.Storer.Clean(ctx, repoInfo, shared.MD5) + // Skip cleaning section + return nil + // log.Info("begin cleaning old versions") + // return s.Storer.Clean(ctx, repoInfo, shared.MD5) } func createFilledBucketBitmap(nodes []*BucketNode) []byte {