You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a scancode JSON output, all Packages detected in a scan are present in a top-level attribute named packages. Likewise, all detected Dependencies are placed in the dependencies attribute. Multiple copies of the same package can be present in the packages field, if a particular package was detected multiple times in the same codebase. Each copy of this package will have a different package_uid. A package_uid is the purl of that package with a qualifier named uuid that is specific to the scancode run. e.g. pkg:pypi/[email protected]?uuid=9c19275c-c3fe-43dd-b6ec-a4f2bf65810f
For each Resource that is for a Package, the for_packages for those Resources will be populated with the package_uid of the Package they are for.
We will need to create a DiscoveredDependency model to handle the dependencies from the new top-level dependency attribute from a scan.
We also need to modify the DiscoveredPackage model to better store/query the new package_uid values. Currently, we put the package_uids for a package in the extra_data field.
The serializers of these models will have to be updated as well.
The value in a Resource's for_packages field is not a purl, but a package_uid. for a particular instance of a Package detected during a scan. In the new output, multiple copies of the same package can appear in the top-level packages field. Each copy has a different package_uid. We'll have to find a way to keep the package_uids around on Resources and to display the package_uids properly in the for_packages field in the scancode.io JSON output.
The text was updated successfully, but these errors were encountered:
* Update scan_for_application_packages to save detected Package data to the CodebaseResource it is from, then iterate through the CodebaseResources with Package data and use the proper Package handler to process the Package data
* Create DiscoveredDependency model
* Add package_data JSON field to CodebaseResource
Signed-off-by: Jono Yang <[email protected]>
In a scancode JSON output, all Packages detected in a scan are present in a top-level attribute named
packages
. Likewise, all detected Dependencies are placed in thedependencies
attribute. Multiple copies of the same package can be present in thepackages
field, if a particular package was detected multiple times in the same codebase. Each copy of this package will have a differentpackage_uid
. Apackage_uid
is the purl of that package with a qualifier nameduuid
that is specific to the scancode run. e.g.pkg:pypi/[email protected]?uuid=9c19275c-c3fe-43dd-b6ec-a4f2bf65810f
For each Resource that is for a Package, the
for_packages
for those Resources will be populated with thepackage_uid
of the Package they are for.We will need to create a
DiscoveredDependency
model to handle the dependencies from the new top-leveldependency
attribute from a scan.We also need to modify the
DiscoveredPackage
model to better store/query the newpackage_uid
values. Currently, we put thepackage_uid
s for a package in theextra_data
field.The serializers of these models will have to be updated as well.
The value in a Resource's
for_packages
field is not a purl, but apackage_uid
. for a particular instance of a Package detected during a scan. In the new output, multiple copies of the same package can appear in the top-levelpackages
field. Each copy has a differentpackage_uid
. We'll have to find a way to keep thepackage_uid
s around on Resources and to display thepackage_uid
s properly in thefor_packages
field in the scancode.io JSON output.The text was updated successfully, but these errors were encountered: