mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
Bump the golang.org/x/exp dependency and fix a build breakage. (#2088)
* Bump the golang.org/x/exp dependency and fix a build breakage. --------- Signed-off-by: Dan Lorenc <dlorenc@chainguard.dev> Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com> Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
co-authored by
Christopher Phillips
parent
1315cfd787
commit
9f22ab6137
@@ -1,6 +1,7 @@
|
||||
package cyclonedxhelpers
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/CycloneDX/cyclonedx-go"
|
||||
@@ -182,8 +183,8 @@ func toDependencies(relationships []artifact.Relationship) []cyclonedx.Dependenc
|
||||
result = append(result, *dep)
|
||||
}
|
||||
|
||||
slices.SortFunc(result, func(a, b cyclonedx.Dependency) bool {
|
||||
return a.Ref < b.Ref
|
||||
slices.SortFunc(result, func(a, b cyclonedx.Dependency) int {
|
||||
return strings.Compare(a.Ref, b.Ref)
|
||||
})
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user