chore: fix conan parser typos (#3802)

Signed-off-by: Musang <s.musang.kim@gmail.com>
This commit is contained in:
Musang Kim 2025-04-15 23:51:02 +09:00 committed by GitHub
parent 1e336e3f07
commit 1866e25f9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,14 +47,14 @@ func parseConanLock(_ context.Context, _ file.Resolver, _ *generic.Environment,
// in a second iteration // in a second iteration
var indexToPkgMap = map[string]pkg.Package{} 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 // 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 // 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 // maps pkg.ID to a list of indices
var parsedPkgRequires = map[artifact.ID][]string{} var parsedPkgRequires = map[artifact.ID][]string{}
v2Pkgs := handleConanLockV1(cl, reader, parsedPkgRequires, indexToPkgMap) v1Pkgs := handleConanLockV1(cl, reader, parsedPkgRequires, indexToPkgMap)
var relationships []artifact.Relationship var relationships []artifact.Relationship
var pkgs []pkg.Package var pkgs []pkg.Package