Skip to content

Commit

Permalink
add logger to package2 inspect
Browse files Browse the repository at this point in the history
Signed-off-by: Kit Patella <[email protected]>
  • Loading branch information
mkcp committed Oct 28, 2024
1 parent fa5a0c0 commit 096cb1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pkg/packager/creator/normal.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func (pc *PackageCreator) Output(ctx context.Context, dst *layout.PackagePaths,
}

if pc.createOpts.ViewSBOM {
err := sbom.ViewSBOMFiles(sbomDir)
err := sbom.ViewSBOMFiles(ctx, sbomDir)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/packager/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (p *Packager) Inspect(ctx context.Context) error {
}

if p.cfg.InspectOpts.ViewSBOM {
err := sbom.ViewSBOMFiles(sbomDir)
err := sbom.ViewSBOMFiles(ctx, sbomDir)
if err != nil {
return err
}
Expand Down

0 comments on commit 096cb1d

Please sign in to comment.