From 096cb1d7d718fb0305e9de9f80901f5b46c33753 Mon Sep 17 00:00:00 2001 From: Kit Patella Date: Mon, 28 Oct 2024 12:05:03 -0700 Subject: [PATCH] add logger to package2 inspect Signed-off-by: Kit Patella --- src/pkg/packager/creator/normal.go | 2 +- src/pkg/packager/inspect.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/packager/creator/normal.go b/src/pkg/packager/creator/normal.go index 89bbf64537..d13d05e595 100644 --- a/src/pkg/packager/creator/normal.go +++ b/src/pkg/packager/creator/normal.go @@ -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 } diff --git a/src/pkg/packager/inspect.go b/src/pkg/packager/inspect.go index 03dee54883..01c6ca4135 100644 --- a/src/pkg/packager/inspect.go +++ b/src/pkg/packager/inspect.go @@ -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 }