fix: use location RealPath not String() (#1950)

This commit is contained in:
Dan Luhring 2024-06-18 06:05:32 -04:00 committed by GitHub
parent 239741f535
commit cb18897492
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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