Skip to content

Commit

Permalink
add warning back and fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Rodriguez committed May 30, 2024
1 parent d671edc commit f30d60b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkg/packager/deprecated/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type BreakingChange struct {

// String returns the string representation of the BreakingChange.
func (bc BreakingChange) String() string {
return fmt.Sprintf("\n %s\n\n - %s\n %s\n",
return fmt.Sprintf("%s\n\n - %s\n %s\n",
pterm.Bold.Sprintf(bc.title),
pterm.Bold.Sprint("Mitigation:"),
strings.ReplaceAll(message.Paragraphn(96, "%s", pterm.FgLightCyan.Sprint(bc.mitigation)), "\n", "\n "),
Expand Down Expand Up @@ -115,7 +115,7 @@ func PrintBreakingChanges(w io.Writer, deployedZarfVersion, cliVersion string) {
"%s" + pterm.FgYellow.Sprint(". Between these versions there are the following breaking changes to consider:")
cliVersion = pterm.Bold.Sprintf(cliVersion)
deployedZarfVersion = pterm.Bold.Sprintf(deployedZarfVersion)
fmt.Fprintf(w, format, cliVersion, deployedZarfVersion)
message.Warnf(format, cliVersion, deployedZarfVersion)

// Print each applicable breaking change
for i, applicableBreakingChange := range applicableBreakingChanges {
Expand Down

0 comments on commit f30d60b

Please sign in to comment.