Skip to content

Commit

Permalink
fix(inspect): sort output by package names
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornplusplus committed Oct 23, 2024
1 parent cec7012 commit b2110b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/chisel/cmd_inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func (cmd *cmdInspect) showCoverage(opts *inspect.CoverageOptions) error {
}
pkgPaths[attr.Package] = append(pkgPaths[attr.Package], path)
}
slices.Sort(pkgs)
var paths []string
for _, pkg := range pkgs {
slices.Sort(pkgPaths[pkg])
Expand Down

0 comments on commit b2110b2

Please sign in to comment.