Skip to content

Commit

Permalink
Output packages as a single string
Browse files Browse the repository at this point in the history
removing the need to join the array using jq
  • Loading branch information
dnephin committed Aug 6, 2022
1 parent 49e9cae commit abba2c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/tool/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func Run(name string, args []string) error {
func usage(name string) string {
return fmt.Sprintf(`Usage: %s COMMAND [flags]
Commands: slowest
Commands: slowest, ci-matrix
Use '%s COMMAND --help' for command specific help.
`, name, name)
Expand Down
4 changes: 2 additions & 2 deletions cmd/tool/matrix/matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ type bucket struct {
}

func writeBuckets(buckets []bucket) error {
out := make(map[int][]string)
out := make(map[int]string)
for i, bucket := range buckets {
out[i] = bucket.Packages
out[i] = strings.Join(bucket.Packages, " ")
}

raw, err := json.Marshal(out)
Expand Down

0 comments on commit abba2c7

Please sign in to comment.