-
Notifications
You must be signed in to change notification settings - Fork 314
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
Cannot find ScanCode license texts in Docker image #8147
Comments
My proposal is to actually not fix this by adjusting the heuristic to find the license texts, at least not as a long-term solution. Instead, we should probably make use of the new |
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]>
I've created #9620 for this now. |
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.
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]>
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]>
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]>
Dump the ScanCode license texts to directory /opt/scancode-license-data when creating the ORT docker container. Use this directory as fallback option if the ScanCode license texts cannot be located by the existing heuristic algorithm. Fixes oss-review-toolkit#8147. Signed-off-by: Wolfgang Klenk <[email protected]>
Dump the ScanCode license texts to directory /opt/scancode-license-data when creating the ORT docker container. Use this directory as fallback option if the ScanCode license texts cannot be located by the existing heuristic algorithm. Fixes oss-review-toolkit#8147. Signed-off-by: Wolfgang Klenk <[email protected]>
Dump the ScanCode license texts to directory /opt/scancode-license-data when creating the ORT docker container. Use this directory as fallback option if the ScanCode license texts cannot be located by the existing heuristic algorithm. Fixes oss-review-toolkit#8147. Signed-off-by: Wolfgang Klenk <[email protected]>
Dump the ScanCode license texts to directory /opt/scancode-license-data when creating the ORT docker container. Use this directory as fallback option if the ScanCode license texts cannot be located by the existing heuristic algorithm. Fixes oss-review-toolkit#8147. Signed-off-by: Wolfgang Klenk <[email protected]>
Thinking about this again, can it be that the issue was a red herring? While it's correct that ort/utils/spdx/src/main/kotlin/Utils.kt Lines 120 to 138 in 958c08c
actually first tries to read license texts from ORT's built-in resources before falling back to So @wkl3nk can you confirm that there actually was an issue with any disclosure documents? If so, for which license ID? |
To my knowledge the issue was not related to SPDX licenses but only licenses starting with "LicenseRef-scancode-". |
I see. There are indeed not part of https://github.com/oss-review-toolkit/ort/tree/main/utils/spdx/src/main/resources/licenserefs. Something to reconsider, maybe. |
ORT cannot find the ScanCode license texts in the Docker image:
The locations of the ScanCode binary and the license texts within the image are:
/opt/python/shims/scancode
/opt/python/versions/3.11.5/lib/python3.11/site-packages/licensedcode/data/licenses
The heuristic to find the license texts based on the path of the ScanCode binary fails for this:
ort/utils/spdx/src/main/kotlin/Utils.kt
Lines 47 to 54 in f88041a
The text was updated successfully, but these errors were encountered: