Conan lockfile V2 license parsing uses incorrect folder structure #6926
Closed
manifestori
started this conversation in
Bugs
Replies: 1 comment
-
Hello @manifestori Created #6931 for this task. Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I have used Trivy to generate SBOMs for Conan projects using lockfiles v2.
Unfortuantly, even though its supported in V1, license parsing using
cache
dir doesn't work.The root cause is:
It's an easy fix, but
cacheDir = path.Join(cacheDir, ".conan", "data")
is not the path for v2.v2 uses
~/.conan2/p/
, so usingCONAN_USER_HOME
still won't work. even if you set it to~/.conan2/p/
it will appenddata
. thus, unable to parse license data from cache.I have copied my files to v1 location and parsing went perfectly.
Desired Behavior
Licenses should be parse on lockfile v2
Actual Behavior
No license data was found in the non-existent cache.
Reproduction Steps
Target
Filesystem
Scanner
None
Output Format
JSON
Mode
None
Debug Output
Operating System
OSX
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions