From 4a56a0d9bc0537d919fe61416d09c8a4f9ebaa28 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Fri, 15 Mar 2024 17:33:09 +0600 Subject: [PATCH] fix: sort libs --- pkg/fanal/analyzer/language/c/conan/conan.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/fanal/analyzer/language/c/conan/conan.go b/pkg/fanal/analyzer/language/c/conan/conan.go index 6ad36ed341bc..83ce5e4f6960 100644 --- a/pkg/fanal/analyzer/language/c/conan/conan.go +++ b/pkg/fanal/analyzer/language/c/conan/conan.go @@ -8,6 +8,7 @@ import ( "os" "path" "path/filepath" + "sort" "strings" "golang.org/x/xerrors" @@ -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 {