-
Notifications
You must be signed in to change notification settings - Fork 310
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
Fix an issue with CuratedPackage.toUncuratedPackage() #6413
Conversation
Could it be commit-lint is running into this bug? conventional-changelog/commitlint#896 |
af774e5
to
8656e94
Compare
Simplify a following change. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
The implementation of `toUncuratedPackage()` does not work for `null` values in all cases due to lack of data, see also #5637. The representation of `OrtResult` has been changed recently to store the original / uncurated packages instead of the curated ones. So, make use of that new representation to always obtain the correct uncurated package. Fixes #5637. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Make the naming consistent with getPackageOrProject(). Signed-off-by: Frank Viernau <frank_viernau@epam.com>
The function is very similar to getUncuratedPackageOrProject(), so it should be located nearby for consistency. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Return a `CuratedPackage` instead of a `Package` to make it clearer that the returned package is actually curated. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Make the implementation consistent with `getUncuratedPackageOrProject()`. Note: The implementation now also better aligns with the function name. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
8656e94
to
728697c
Compare
Looks like it, maybe the |
Merged despite unrelated test failures. |
Get rid of the "not always correctly working" [1]
toUncuratedPackage()
by utilizing the original uncurated packages from theOrtResult
. While at it, do a couple of clean-ups for relatedOrtResult
getters and their callers.[1] #5637.
BREAKING CHANGE: Only for programmatic use of ORT:
OrtResult
instead of from the removedtoUncuratedPackage()
.