Skip to content

Commit

Permalink
fix [closes #307]: ABRoot flips versions in package diff
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
  • Loading branch information
kbdharun committed Jun 21, 2024
1 parent a579af3 commit 43a6872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func renderPackageDiff(added, upgraded, downgraded, removed []diff.PackageDiff)
for _, pkg := range pkgSet.Set {
bulletItems = append(bulletItems, cmdr.BulletListItem{
Level: 1,
Text: fmt.Sprintf(pkgFmt, pkg.Name+strings.Repeat(" ", largestPkgName-len(pkg.Name)), pkg.PreviousVersion, pkg.NewVersion),
Text: fmt.Sprintf(pkgFmt, pkg.Name+strings.Repeat(" ", largestPkgName-len(pkg.Name)), pkg.NewVersion, pkg.PreviousVersion),
})
}
err := cmdr.BulletList.WithItems(bulletItems).Render()
Expand Down

0 comments on commit 43a6872

Please sign in to comment.