-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Definitions for DiscoveredPackage
and DiscoverdDependency
are very different
#885
Comments
DiscoveredPackage
and DisocoverdDependency
are very differentDiscoveredPackage
and DiscoverdDependency
are very different
DiscoveredPackage and DiscoverdDependency model schemas are inherited from ScanCode-toolkit models. |
Is there a reason that |
So there are a lot of small and important semantic differences that we are likely handling poorly at this stage... and here some general considerations.
Here a dependency is either:
When resolved or pinned, it may become an actual package. |
In a certain codebase
Which of these would be treated like a package ? Before the code is built (ie venv created and deps fetched), nothing is concrete except the codebase being scanned.
IMO, it would help to define this thing as a package and then deriving 1 and 2 as metadata of being present in the codebase or not. The current structure does not support specifying parent-child relationships between packages which might be present in the codebase (consider a vendored codebase where dependency upto two levels are present).
Does it help to store ranges in an SBOM ? Shouldn't an SBOM be data about a precise snapshot of the codebase at a point of time which will always resolve to a single version ? |
Do have a look at the above PR for the proposed changes in the current schema to support transitives. It is heavily WIP and needs many changes but conveys the concept |
Related: aboutcode-org/scancode-toolkit#2418 |
Minor nitpick:
DiscoveredPackage
useduuid
fieldhttps://github.com/nexB/scancode.io/blob/5f2cbae33c1ac7fa843fb4bddf9ab3f62fc831b2/scanpipe/models.py#L2534-L2536
DiscoveredDependency
uses aCharField
https://github.com/nexB/scancode.io/blob/5f2cbae33c1ac7fa843fb4bddf9ab3f62fc831b2/scanpipe/models.py#L2837-L2840
We need to discuss the distinction between a
Package
and aDependency
.The text was updated successfully, but these errors were encountered: