Repository navigation
Conversation
c84c872 to
3b359de
Compare
AyanSinhaMahapatra
left a comment
There was a problem hiding this comment.
Thanks++ @SLASH217 for the PR, looking good already, but you need to modify the tests so we can see the full output and verify the functionality added before I can do an in depth review. Added some other feedback you also need to address.
|
Thank you for your feedback and valuable time. |
127f3fc to
21ca2ff
Compare
|
@AyanSinhaMahapatra I have updated the PR, adding all the fixes you have requested. |
AyanSinhaMahapatra
left a comment
There was a problem hiding this comment.
Thanks @SLASH217, almost there. A couple small changes suggested for your consideration.
Could you also check if #3249 is fixed by this? See #3249 (comment) for the input.
|
Understood! I will get to work as soon my exams end. |
Implement base handler class and Lua rockspec parser using luaparser for AST-based dependency extraction. Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Extract package metadata and dependencies from rockspec files with version specification parsing. Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
* Test parser with real Kong rockspec file * Test handler integration with patterns Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Register handler in APPLICATION_PACKAGE_DATAFILE_HANDLERS to enable automatic .rockspec file detection. Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
* Update contributing-docs link to new structure * Ensure both documentation links work correctly * Point to getting-started/contribute path Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Change luaparser from == to match project's version pinning pattern: * requirements.txt: luaparser==1.4.3 (exact pinning) * setup.cfg: luaparser == 1.4.3 (exact pinning) Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
- This was causing a test to fail in CI/CD Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
- Extra "/n" causing failure of CI/CD Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
-- Added links for source of .rockspec files used in testing. Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
-- Modules not required to be parsed Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
-- updated to be lower bound Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
-- use check_packages_data -- instead of manually asserting data one by one. Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
-- Causing the CI/CD to fail. Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
c843ee1 to
57bf647
Compare
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
…e version in purl if it is not pinned Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
…ames as original file names were changed Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
f785c99 to
b9be3b5
Compare
I have made the changes as requested. |
|
Hi @SLASH217, thanks for working on this! LuaRocks/rockspec support is something we need Could you tell us where this stands?
@AyanSinhaMahapatra, is there anything left that blocks merging? If the author has no time to continue, we'd be glad to take it over: we would fork your branch, |
|
@KraMorK thank you for your interest, let me do another pass of review to check what is remaining. In any case, forking, using the original commits and adding changes on top is perfectly fine and exactly what we want. Please go ahead if you want to add more changes. Let's get this merged (we will have another release in a week so this could be released soon too) 😊 |
|
Thanks @KraMorK and @AyanSinhaMahapatra, and apologies for the slow updates on my side. @KraMorK, I'd like to keep working on this PR, so please hold off on forking it for now. @AyanSinhaMahapatra, I addressed your Apr 15 comments on Jun 1. Since you're doing another pass, could you let me know if anything else needs to change, including any docs or CHANGELOG updates? I'll make the changes promptly. |
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
|
@AyanSinhaMahapatra I merged upstream develop into this branch and pushed the update. I added the LuaRocks docs and changelog entry here, and moved the unrelated CONTRIBUTING.rst link fixes to #5583. I also rechecked #3249. The Yocto sample you linked contains no .rockspec, so this PR doesn’t change its scan results. Later in the same thread, Kong came up as an example where ScanCode didn’t recognize the .rockspec. This PR fixes that part: ScanCode now detects Kong from its manifest and includes it as a CycloneDX component. So my earlier claim was too broad : this addresses #3526, but doesn’t close #3249. |
Add Lua rockspec package handler for LuaRocks dependencies
Fixes #3526
Changes
RockspecHandlerto detect LuaRocks.rockspecmanifests and parse them withluaparser.CHANGELOG.rst, andAUTHORS.rst.Validation
pytest tests/packagedcode/test_rockspec.py -q: 9 passed locally.Tasks
Run tests locally to check for errors.
Signed-off-by: Prashanna Dahal prashanna217@gmail.com