Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat(ort-config): Extract a generic
GitPackageCurationProvider#11941New 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
Uh oh!
There was an error while loading. Please reload this page.
feat(ort-config): Extract a generic
GitPackageCurationProvider#11941Changes from all commits
dbc71b74d54d8cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Check warning on line 25 in plugins/package-curation-providers/git/src/funTest/kotlin/GitPackageCurationProviderFunTest.kt
Unused import directive
Check warning
Code scanning / QDJVM
Unused import directive Warning
Check warning on line 36 in plugins/package-curation-providers/git/src/funTest/kotlin/GitPackageCurationProviderFunTest.kt
Unused symbol
Check warning
Code scanning / QDJVM
Unused symbol Warning
Uh oh!
There was an error while loading. Please reload this page.
Check warning on line 32 in plugins/package-curation-providers/git/src/funTest/kotlin/OrtConfigPackageCurationProviderFunTest.kt
Unused symbol
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.
Not sure if this should really be the default, or just something that
OrtConfigPackageCurationProvidersets.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.
I chose it because it seems people generally use the ort-config repo as template, so why not make their lives a bit easier.
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.
Not sure about "cache" here. Should we put Git working directories into a more specifically named directory? Which BTW makes me wonder why
DefaultWorkingTreeCacheusesval dir = createOrtTempDir()instead.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.
I just want some stable directory because it's a nice optimization when running ORT locally. "cache" made sense to me to signal that this can be deleted without causing problems (even though there is no automatic cleanup). Do you have any specific proposals for alternatives? It can also easily be changed later, if needed.
IIRC this is because the cache was made specifically for the requirements of the scanner and you would not want to permanently archive the source code of all scanned packages when running ORT locally.
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.
Well, maybe any of "git", "worktree", "clone", "plugin"... but you can also keep it at "cache".
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.
I kind of like "plugin" because it clarifies the scope, should I change it? Or maybe we can revisit this when doing the same change for the package configuration provider.
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.
Yes, let's do that.
Check warning on line 41 in plugins/package-curation-providers/git/src/main/kotlin/OrtConfigPackageCurationProvider.kt
Unused symbol
Check warning
Code scanning / QDJVM
Unused symbol Warning
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.