From 1866e25f9a3cc349f9b1269570da28bfb64b5396 Mon Sep 17 00:00:00 2001 From: Musang Kim <93360094+musangk@users.noreply.github.com> Date: Tue, 15 Apr 2025 23:51:02 +0900 Subject: [PATCH] chore: fix conan parser typos (#3802) Signed-off-by: Musang --- syft/pkg/cataloger/cpp/parse_conanlock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syft/pkg/cataloger/cpp/parse_conanlock.go b/syft/pkg/cataloger/cpp/parse_conanlock.go index 0382e93b6..7fb19fbc0 100644 --- a/syft/pkg/cataloger/cpp/parse_conanlock.go +++ b/syft/pkg/cataloger/cpp/parse_conanlock.go @@ -47,14 +47,14 @@ func parseConanLock(_ context.Context, _ file.Resolver, _ *generic.Environment, // in a second iteration var indexToPkgMap = map[string]pkg.Package{} - v1Pkgs := handleConanLockV2(cl, reader, indexToPkgMap) + v2Pkgs := handleConanLockV2(cl, reader, indexToPkgMap) // we do not want to store the index list requires in the conan metadata, because it is not useful to have it in // the SBOM. Instead, we will store it in a map and then use it to build the relationships // maps pkg.ID to a list of indices var parsedPkgRequires = map[artifact.ID][]string{} - v2Pkgs := handleConanLockV1(cl, reader, parsedPkgRequires, indexToPkgMap) + v1Pkgs := handleConanLockV1(cl, reader, parsedPkgRequires, indexToPkgMap) var relationships []artifact.Relationship var pkgs []pkg.Package