mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
fix: use location RealPath not String() (#1950)
This commit is contained in:
parent
239741f535
commit
cb18897492
1 changed files with 2 additions and 2 deletions
|
@ -34,11 +34,11 @@ func (m ByElements) Less(i, j int) bool {
|
|||
loc2 := m[j].Package.Locations.ToSlice()
|
||||
var locStr1 string
|
||||
for _, location := range loc1 {
|
||||
locStr1 += location.String()
|
||||
locStr1 += location.RealPath
|
||||
}
|
||||
var locStr2 string
|
||||
for _, location := range loc2 {
|
||||
locStr2 += location.String()
|
||||
locStr2 += location.RealPath
|
||||
}
|
||||
|
||||
return locStr1 < locStr2
|
||||
|
|
Loading…
Reference in a new issue