Skip to content

Commit

Permalink
fix: incorrect snapshot used during bom stage
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Dec 11, 2023
1 parent 06f22d5 commit ab92e96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/stacker/bom.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ func BuildLayerArtifacts(sc types.StackerConfig, storage types.Storage, l types.
defer c.Close()

inDir := types.InternalStackerDir
err = SetupBuildContainerConfig(sc, storage, c, inDir, tag)
err = SetupBuildContainerConfig(sc, storage, c, inDir, name)
if err != nil {
log.Errorf("build container %v", err)
return err
}

err = SetupLayerConfig(sc, c, l, inDir, tag)
err = SetupLayerConfig(sc, c, l, inDir, name)
if err != nil {
return err
}
Expand Down Expand Up @@ -74,13 +74,13 @@ func VerifyLayerArtifacts(sc types.StackerConfig, storage types.Storage, l types
defer c.Close()

inDir := types.InternalStackerDir
err = SetupBuildContainerConfig(sc, storage, c, inDir, tag)
err = SetupBuildContainerConfig(sc, storage, c, inDir, name)
if err != nil {
log.Errorf("build container %v", err)
return err
}

err = SetupLayerConfig(sc, c, l, inDir, tag)
err = SetupLayerConfig(sc, c, l, inDir, name)
if err != nil {
return err
}
Expand Down

0 comments on commit ab92e96

Please sign in to comment.