-
-
Notifications
You must be signed in to change notification settings - Fork 579
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
Report Packages at the codebase-level #2098
Comments
Signed-off-by: Jono Yang <[email protected]>
Signed-off-by: Jono Yang <[email protected]>
Signed-off-by: Jono Yang <[email protected]>
Signed-off-by: Jono Yang <[email protected]>
Signed-off-by: Jono Yang <[email protected]>
Something to consider if we were to track packages at the top level:
|
@JonoYang I reckon this was never merged. And we will need this but IMHO we should go one more step:
Packages can be nested too:a package can have sub-packages or have multiple personalities such as a bower.json and a package.json, or node_modules nested under an npm or scancode-toolkit bundled wheels. Therefore I think we should:
|
After a chat with @tdruez , we should list right away the |
From #1554
|
Also see improvements to this in #2843 |
Add Package Instances #2691 This PR adds the PackageInstance class and functions to group package manifests and package data as top level package instances. Existing package data are ported to this new approach. Reference: #2098 Reference: #2691 Reference: #2692 Reference: #2693 Reference: #2843 Reference: #2652 Signed-off-by: Ayan Sinha Mahapatra <[email protected]> Signed-off-by: Philippe Ombredanne <[email protected]>
This is mostly done but there are some smaller issues pending. |
I consider this done now. @JonoYang @AyanSinhaMahapatra Thanks! |
We should make the package consolidation logic from the consolidation plugin a default function of the Package scanning option. The consolidation plugin would then be focused on files that are not part of a package so we can perform logical groupings on them.
Some changes that would have to change on the Package model/Package scanning process:
consolidated_to
field, where it would be a list of purls. Possible name for this field isfor_packages
.Here is an updated design:
The key elements are to:
packages
as top-level. The data structure is the same as the one at the file level but will be the merged data from possibly several manifests and lock files.Package model updates
package_instance
#2691package_manifest_paths
attribute #2692PackageManifest
class #2747Files model updates
for_packages
attribute #2693packages
topackage_manifests
. #2694This could look this way:
For later:
packages
of their own 2) related to their parent (or the parent related to them)file_paths
under each top level package instanceThe text was updated successfully, but these errors were encountered: