Skip to content

Commit 3e89176

Browse files
author
jguerreiro
committed
fix(srcfingerprint): remove repo after scan is finished
1 parent 7b12c7b commit 3e89176

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extractor.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ func (fe *FastExtractor) Run(repository *git.Repository) chan *GitFile {
105105
close(fe.ChanGitFiles)
106106
log.Info("channel is closed")
107107
log.Infof("finishing iterating over files, we have collected %d files", num)
108+
109+
if err := os.RemoveAll(path); err != nil {
110+
log.Errorln("Unable to remove directory ", path)
111+
}
108112
}()
109113

110114
return fe.ChanGitFiles

pipeline.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ type ResultGitFilePipelineEvent struct {
2929
GitFile *GitFile
3030
}
3131

32-
// func (rgp *ResultGitFilePipelineEvent) ToJson() {
33-
//
34-
//}
35-
3632
// RepositoryPipelineEvent represents an event from a repository.
3733
type RepositoryPipelineEvent struct {
3834
// Finished is true if the given repository is pipeline is done

0 commit comments

Comments
 (0)