-
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
Gradle: generateSpdxEnums
fails fetching files from ScanCode repo
#5725
Comments
I also once had a rewrite in mind to get rid of |
I'll investigate some alternatives to rewrite the code. |
Just to provide some context - I stumble upon this bug as I was trying to update ORT to SPDX license list 3.18. |
generateSpdxEnums
fails fetching files from ScanCode repo
GitHub's legacy feature of transparently exposing Git repositories as Subversion repositories is rather slow and not very reliable. Actually, it stopped working completely some time ago. Solve this by rewriting the `spdx-utils` import tasks to use the `Download` plugin [1] instead on URLs created via GitHub's tree API [2] to list directory contents (the content API [3] does not work for ScanCode's massive license list due to its limitation to 1000 files for a directory). Fixes #5725. [1]: https://github.com/michel-kraemer/gradle-download-task [2]: https://docs.github.com/en/rest/git/trees#get-a-tree [3]: https://docs.github.com/en/rest/repos/contents#get-repository-content Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
GitHub's legacy feature of transparently exposing Git repositories as Subversion repositories is rather slow and not very reliable. Actually, it stopped working completely some time ago. Solve this by rewriting the `spdx-utils` import tasks to use the `Download` plugin [1] instead on URLs created via GitHub's tree API [2] to list directory contents (the content API [3] does not work for ScanCode's massive license list due to its limitation to 1000 files for a directory). Fixes #5725. [1]: https://github.com/michel-kraemer/gradle-download-task [2]: https://docs.github.com/en/rest/git/trees#get-a-tree [3]: https://docs.github.com/en/rest/repos/contents#get-repository-content Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
I've tried multiple times on my machine, but each time the task fails [1].
The reason for that may be [2].
A solution could be to re-write fetching data to simply download the zip archive instead of using
SvnExport
.This downloads more data but can be ok as the task is not performed frequently.
[1]
[2] https://gramps.discourse.group/t/problem-downloading-gramps-source-code-from-github-using-svn-since-24-aug/750/12
The text was updated successfully, but these errors were encountered: