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

feat: find repo from latest artifact when provided artifact has none #931

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

benmss
Copy link
Member

@benmss benmss commented Nov 28, 2024

This PR improves the Repo Finder by making it check for repositories using the latest version of an artifact if the provided version does not contain that information. This latest version finding behaviour is also added for the case where a Java PURL was provided without a version, and is added for the find-source command.

@benmss benmss self-assigned this Nov 28, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 28, 2024
@benmss benmss marked this pull request as ready for review November 28, 2024 05:29
@@ -133,7 +133,7 @@ def to_repo_path(purl: PackageURL, available_domains: list[str]) -> str | None:
)


def find_source(purl_string: str, input_repo: str | None) -> bool:
def find_source(purl_string: str, input_repo: str | None, latest_version_fallback: bool = True) -> bool:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the repo finder used in the analyzer module is inconsistent with this implementation, as it doesn't utilize the same fallback for the latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants