Skip to content

Commit

Permalink
Skip cleaning older versions for now (google#1801)
Browse files Browse the repository at this point in the history
Skip cleaning older versions for now, until we update osv-scanner and
indexer scanning tools to also ignore vendor folders.
  • Loading branch information
another-rex authored Nov 8, 2023
1 parent 8b77f61 commit eb3b3c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ __pycache__/
build/lib
.vscode
*.tfstate*
.history/*
.history/*
**/.history/*
6 changes: 4 additions & 2 deletions docker/indexer/stages/processing/processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit eb3b3c7

Please sign in to comment.