mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 07:56:36 +01:00
Adding metadata fields when parsing yarn.lock and poetry.lock (#2350)
* Adding the resolved and integrity fields of yarn.lock to the parsed metadata. This addition is similar to the metadata added when parsing package-lock.json. Signed-off-by: asi-cider <88270351+asi-cider@users.noreply.github.com> * fix comment Signed-off-by: asi-cider <88270351+asi-cider@users.noreply.github.com> * Adding the Index field to metadeta when parsing poetry.lock similarly to the existing Pipfile metadata Signed-off-by: asi-cider <88270351+asi-cider@users.noreply.github.com> * fixing struct accoding to tests Signed-off-by: asi-cider <88270351+asi-cider@users.noreply.github.com> * remove old schema change Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove empty constants Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * re-generate JSON schema Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update document ref Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix linting Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: asi-cider <88270351+asi-cider@users.noreply.github.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
co-authored by
Alex Goodman
parent
d7b9cc70b0
commit
98de2e2f62
@@ -16,3 +16,9 @@ type NpmPackageLockEntry struct {
|
||||
Resolved string `mapstructure:"resolved" json:"resolved"`
|
||||
Integrity string `mapstructure:"integrity" json:"integrity"`
|
||||
}
|
||||
|
||||
// YarnLockEntry represents a single entry section of a yarn.lock file.
|
||||
type YarnLockEntry struct {
|
||||
Resolved string `mapstructure:"resolved" json:"resolved"`
|
||||
Integrity string `mapstructure:"integrity" json:"integrity"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user