Closed xu1119 closed 2 years ago
@xu1119 Thanks for the report!
This pygradle plugin defines its own dependencies semantics. It should be not hard to recognize what we extract as a "python" scope and a "pypi" namespace in python 'pypi:numpy:1.11.2'
to get a proper purl.
That said, do you how prevalent and common pygradle would be? I asked the authors at https://github.com/linkedin/pygradle/issues/357 FWIW
I am copying here this feedback from upstream pygradle author in https://github.com/linkedin/pygradle/issues/357
pombredanne commented 3 days ago
I have a request to better scan the dependency style of pygradle in nexB/scancode-toolkit#3015 and I was wondering if this project is still actively maintained as the last commit was about two years ago. Thanks!
@warsaw commented 3 days ago
No, this project really isn't still actively maintained.
Also there are only a handful of pygradle projects I can find in the wild: https://github.com/search?q="dependencies+{python+'pypi"&type=code and https://github.com/search?q="pyGradlePyPi"&type=Code
So based on this, I wonder if doing anything special is worth it? How often do you see pygradle used in the wild?
In any case since this would be a tiny code change so I could be talked into accepting a small, focused patch with tests to handle these (rarer) cases.
Thanks for doing these. I found this just when I scan some java gradle project searched from github sorted by stars. Based on the search results you found and feedback from pygradle author, I think it may not worth to change.
@xu1119 you wrote:
I found this just when I scan some java gradle project searched from github sorted by stars.
I would be interested if you can elaborate a bit on this? Also if you find any other issue while parsing gradle build files.
I find some open source SCA tools, and compare results generated by these tools. So I search different projects from github. Other projects scancode can normally analyze, pygradle is special in results.
@xu1119 you wrote:
I find some open source SCA tools, and compare results generated by these tools.
If you can share more results this would be awesome as this will help improve and/or fix bugs here!
Description
When analyse dependeices of project pygradle, results and purls from file build.gradle are wrong, such as pkg:maven/pypi/numpy@1.11.2 Following are the file and part of the result:
How To Reproduce
scancode -p --json-pp - pygradle/
System configuration