Skip to content

Commit 1dd21e7

Browse files
committed
build: fix SBOM language gathering for subpackage pipelines
Signed-off-by: Ariadne Conill <[email protected]>
1 parent dfb3935 commit 1dd21e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/build/build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,6 +1476,8 @@ func (ctx *Context) BuildPackage() error {
14761476

14771477
// run any pipelines for subpackages
14781478
for _, sp := range ctx.Configuration.Subpackages {
1479+
langs := []string{}
1480+
14791481
if !ctx.IsBuildLess() {
14801482
ctx.Logger.Printf("running pipeline for subpackage %s", sp.Name)
14811483
pctx.Subpackage = &sp
@@ -1488,8 +1490,6 @@ func (ctx *Context) BuildPackage() error {
14881490
continue
14891491
}
14901492

1491-
langs := []string{}
1492-
14931493
for _, p := range sp.Pipeline {
14941494
if _, err := p.Run(&pctx); err != nil {
14951495
return fmt.Errorf("unable to run pipeline: %w", err)

0 commit comments

Comments
 (0)