Skip to content

Commit

Permalink
fix: sort libs
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Mar 15, 2024
1 parent 58efb64 commit 4a56a0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/fanal/analyzer/language/c/conan/conan.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"os"
"path"
"path/filepath"
"sort"
"strings"

"golang.org/x/xerrors"
Expand Down Expand Up @@ -70,6 +71,7 @@ func (a conanLockAnalyzer) PostAnalyze(_ context.Context, input analyzer.PostAna
}
}

sort.Sort(app.Libraries)
apps = append(apps, *app)
return nil
}); err != nil {
Expand Down

0 comments on commit 4a56a0d

Please sign in to comment.