Skip to content
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

Create library to find the corresponding source code for a package #374

Closed
pombredanne opened this issue Apr 4, 2024 · 1 comment
Closed
Assignees

Comments

@pombredanne
Copy link
Member

pombredanne commented Apr 4, 2024

I would like to have a flexible library to find the corresponding source code for a package

Core features for this are already part of the find source module and here what I would like if a specific reusable and documented library that wraps this feature so it can be reused in ScanCode.io, VulnerableCode and PurlDB.

The library can be stored in the purldb repo (like the purldb toolkit) but should be released as it own PyPI package for reuse

For PurlDB, an outcome would be also to update or create the package set once the source repo is found and ensure it is further indexed.

Some notes:
Finding the repo and the commits of a version is sometimes difficult because in many cases the information is not directly available in a package archive metadata and we may need to dive deeper in key files, other files or other packages in the set.

The typical flow would be assuming PURL inputs:

  • Given a binary package, find the source repos
  • Given a source package archive, find the source repos
  • Given a package set, find the source repos
  • Then once the repo is found, find the matching commit for a package version.
@pombredanne pombredanne changed the title ScanCode.io: Create library to find the corresponding source code for a binary (Git repositories and commits for a package version). ScanCode.io: Create library to find the corresponding source code for a binary Apr 4, 2024
@pombredanne pombredanne changed the title ScanCode.io: Create library to find the corresponding source code for a binary Create library to find the corresponding source code for a package Apr 4, 2024
@pombredanne pombredanne transferred this issue from aboutcode-org/scancode.io Apr 4, 2024
@pombredanne pombredanne self-assigned this Apr 5, 2024
@pombredanne pombredanne assigned TG1999 and unassigned TG1999 Apr 23, 2024
pombredanne added a commit that referenced this issue May 6, 2024
Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
pombredanne added a commit that referenced this issue May 6, 2024
Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
pombredanne added a commit that referenced this issue May 6, 2024
Add documentation and cosmetic refactor

Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
pombredanne added a commit that referenced this issue May 6, 2024
Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
pombredanne added a commit that referenced this issue May 6, 2024
Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
pombredanne added a commit that referenced this issue May 6, 2024
Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
pombredanne added a commit that referenced this issue May 6, 2024
Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
pombredanne added a commit that referenced this issue May 6, 2024
Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
TG1999 added a commit that referenced this issue May 9, 2024
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
TG1999 added a commit that referenced this issue May 9, 2024
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
TG1999 added a commit that referenced this issue May 9, 2024
* Create purl2vcs library #374

Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>

* Create purl2vcs library #374

Add documentation and cosmetic refactor

Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>

* Make purl2vcs tests pass #374

Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>

* Streamline and update main purldb version

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>

* Remove cruft from purl2vcs pyproject #374

Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>

* Prepare move to purl2vcs dir #374

Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>

* Move all to purl2vcs dir #374

Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>

* Add purl2vcs to configure #374

Reference: #374
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>

* Fix dependencies #374

Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>

* Remove docs from configure #374

Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>

---------

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Co-authored-by: Tushar Goel <tushar.goel.dav@gmail.com>
@TG1999 TG1999 closed this as completed May 9, 2024
@pombredanne
Copy link
Member Author

This has been released at https://pypi.org/search/?q=purl2vcs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants