Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(helper-cli): Fix broken reading of scan results by identifier
The refactoring done in [1] does not just merges functions, but in addition changes the behavior of the `read()` function to filter the result by the provenance of the given package. So, [1] obviously broke the reading of scan results in `helper-cli`'s `CreateCommand`, see also [2][3]. A better way to fix this might be to migrate the command to use a scan results by provenance storage together with a package / nested provenance storage. As this is a bigger effort, fix the regression from [1] for now in a rather minimal invasive way, which just bypasses the filtering by provnenance. [1]: 70b1b86 [2]: https://github.com/oss-review-toolkit/ort/blob/8ed8e2bff913f1d3aafecfb6eb746614f01dfafc/helper-cli/src/main/kotlin/commands/packageconfig/CreateCommand.kt#L123 [3]: https://github.com/oss-review-toolkit/ort/blob/8ed8e2bff913f1d3aafecfb6eb746614f01dfafc/scanner/src/main/kotlin/storages/PackageBasedFileStorage.kt#L75 Signed-off-by: Frank Viernau <[email protected]>
- Loading branch information