fix: emit lua rockspec dependencies in metadata #4376
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The types / schema allowed for this field to begin with but it wasn't set.
Description
Please include a summary of the changes along with any relevant motivation and context,
or link to an issue where this is explained.
Type of change
Checklist:
example output
go run ./cmd/syft cmd/syft/internal/test/integration/test-fixtures/image-pkg-coverage/pkgs/rockspec/ -o json | jq '.artifacts[0].metadata'{ "name": "kong", "version": "3.7.0-0", "license": "Apache-2.0", "homepage": "https://konghq.com", "description": "Kong is a scalable and customizable API Management Layer built on top of Nginx.", "url": "git+https://github.com/Kong/kong.git", "dependencies": { "binaryheap": ">= 0.4", "inspect": "== 3.1.3", "kong-lapis": "== 1.16.0.1", "kong-pgmoon": "== 1.16.2", "lpeg": "== 1.1.0", "lua-ffi-zlib": "== 0.6", "lua-messagepack": "== 0.5.4", "lua-protobuf": "== 0.5.0", "lua-resty-acme": "== 0.12.0", "lua-resty-aws": "== 1.3.6", "lua-resty-counter": "== 0.2.1", "lua-resty-healthcheck": "== 3.0.1", "lua-resty-http": "== 0.17.1", "lua-resty-ipmatcher": "== 0.6.1", "lua-resty-jit-uuid": "== 0.0.7", "lua-resty-ljsonschema": "== 1.1.6-2", "lua-resty-openssl": "== 1.2.0", "lua-resty-session": "== 4.0.5", "lua-resty-timer-ng": "== 0.2.6", "lua_pack": "== 2.0.0", "lua_system_constants": "== 0.1.4", "luasec": "== 1.3.2", "luasocket": "== 3.0-rc1", "luasyslog": "== 2.0.1", "luatz": "== 0.4", "luaxxhash": ">= 1.0", "lyaml": "== 6.2.8", "multipart": "== 0.5.9", "penlight": "== 1.13.1", "version": "== 1.0.1" } }