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