Skip to content

Commit

Permalink
sort make tools
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed Jul 6, 2024
1 parent a23a0ca commit c5a9745
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fetcher/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var (
"windows": {"darwin"},
}

excludedSuffixes = []string{"sum", "sha256", "sbom", "pem", "sig", "rpm", "txt", "deb", "json"}
excludedSuffixes = []string{"sum", "sha256", "sbom", "pem", "sig", "rpm", "txt", "deb", "json", "asc"}
)

func New() Fetcher {
Expand Down
2 changes: 2 additions & 0 deletions pkg/makefile/make.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"io"
"os"
"regexp"
"slices"
"sort"
"strings"
"text/template"
Expand Down Expand Up @@ -168,5 +169,6 @@ func unique(slice []string) []string {
for v := range uniqMap {
uniqSlice = append(uniqSlice, v)
}
slices.Sort(uniqSlice)
return uniqSlice
}

0 comments on commit c5a9745

Please sign in to comment.