-
Notifications
You must be signed in to change notification settings - Fork 24
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: use repository url provided as input for finding a commit #622
Conversation
Signed-off-by: Ben Selwyn-Smith <[email protected]>
Signed-off-by: Ben Selwyn-Smith <[email protected]>
Signed-off-by: Ben Selwyn-Smith <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the PR.
This note in the documentation needs to be updated. Also, please add an example in the documentation to show how both a repo path and a PURL containing a version can be used at the same time. This PR could also be considered as a feature I think. |
Signed-off-by: Ben Selwyn-Smith <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the changes.
This PR allows a user to provide to the command line: a repository URL with no digest alongside a PURL with a version. Signed-off-by: Ben Selwyn-Smith <[email protected]>
For cases where the user has provided a PURL with a version but no repository can be found, this PR allows the analysis to succeed as long as the user provides a repository path as well. This differs from the current functionality where if both a PURL and repo are provided, a commit must be too.
An example of this new use case is added in the integration tests:
macaron analyze -purl pkg:maven/org.tinymediamanager/[email protected] -rp https://gitlab.com/tinyMediaManager/tinyMediaManager
Without this new functionality, the above test would fail as the provided version cannot be found by the Repo Finder.
Closes #621