Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(scancode): No ScanCode license texts in disclosure document
If ORT is executed within a Docker container, the report generator for the OSS disclosure document may not be able to look up the license texts collected by ScanCode, leading to empty sections in the disclosure document. In environments where Python version management tools like Pyenv are used, directory structures differ, leading to different paths for data directories, causing the reporter to fail looking up the ScanCode license texts. Update the heuristic algorithm to locate the ScanCode license texts directory based on the path of the ScanCode binary: Ensure compatibility with directory layouts managed by Python version management tools. Fixes oss-review-toolkit#8147. Signed-off-by: Wolfgang Klenk <[email protected]>
- Loading branch information