From 7f0dfd73d2c769fdc8c6c5fc3b62c6eec94ebb04 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Sat, 25 Jun 2022 13:05:36 -0400 Subject: [PATCH] Output packages as a single string removing the need to join the array using jq --- cmd/tool/matrix/matrix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tool/matrix/matrix.go b/cmd/tool/matrix/matrix.go index 4fb874bd..9ee07995 100644 --- a/cmd/tool/matrix/matrix.go +++ b/cmd/tool/matrix/matrix.go @@ -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)