Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Ignore analyze file error in layer #318

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion artifact/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ func (a Artifact) inspectLayer(ctx context.Context, diffID string) (types.BlobIn

opqDirs, whFiles, err := a.walker.Walk(r, func(filePath string, info os.FileInfo, opener analyzer.Opener) error {
if err = a.analyzer.AnalyzeFile(ctx, &wg, limit, result, "", filePath, info, opener); err != nil {
return xerrors.Errorf("failed to analyze %s: %w", filePath, err)
log.Logger.Errorf("failed to analyze %s: %w", filePath, err)
return nil
}
return nil
})
Expand Down