Skip to content

Commit

Permalink
changed build order
Browse files Browse the repository at this point in the history
finishing touch, processRPMs needs to come before generateCombustionScript so that the rpm script is registered
  • Loading branch information
dbw7 committed Nov 17, 2023
1 parent 6d6284c commit 159b13f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ func (b *Builder) Build() error {
return fmt.Errorf("configuring custom scripts: %w", err)
}

err = b.generateCombustionScript()
err = b.processRPMs()
if err != nil {
return fmt.Errorf("generating combustion script: %w", err)
return fmt.Errorf("processing RPMs: %w", err)
}

err = b.processRPMs()
err = b.generateCombustionScript()
if err != nil {
return fmt.Errorf("processing RPMs: %w", err)
return fmt.Errorf("generating combustion script: %w", err)
}

switch b.imageConfig.Image.ImageType {
Expand Down

0 comments on commit 159b13f

Please sign in to comment.