mirror of
https://github.com/anchore/syft.git
synced 2026-11-05 08:56:41 +01:00
Finalize Conan v2 support (#2587)
* Add support for conan lock v2 (#2461) * conan lock 2.x requires field support Signed-off-by: houdini91 <mdstrauss91@gmail.com> * PR review, struct renaming Signed-off-by: houdini91 <mdstrauss91@gmail.com> --------- Signed-off-by: houdini91 <mdstrauss91@gmail.com> * decompose conanlock parser + add tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: houdini91 <mdstrauss91@gmail.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: mikey strauss <mdstrauss91@gmail.com>
This commit is contained in:
co-authored by
mikey strauss
parent
00d6269e3c
commit
c61f59e7b7
+13
-2
@@ -1,7 +1,7 @@
|
||||
package pkg
|
||||
|
||||
// ConanLockEntry represents a single "node" entry from a conan.lock file.
|
||||
type ConanLockEntry struct {
|
||||
// ConanV1LockEntry represents a single "node" entry from a conan.lock V1 file.
|
||||
type ConanV1LockEntry struct {
|
||||
Ref string `json:"ref"`
|
||||
PackageID string `json:"package_id,omitempty"`
|
||||
Prev string `json:"prev,omitempty"`
|
||||
@@ -13,6 +13,17 @@ type ConanLockEntry struct {
|
||||
Context string `json:"context,omitempty"`
|
||||
}
|
||||
|
||||
// ConanV2LockEntry represents a single "node" entry from a conan.lock V2 file.
|
||||
type ConanV2LockEntry struct {
|
||||
Ref string `json:"ref"`
|
||||
PackageID string `json:"packageID,omitempty"`
|
||||
Username string `json:"username,omitempty"`
|
||||
Channel string `json:"channel,omitempty"`
|
||||
RecipeRevision string `json:"recipeRevision,omitempty"`
|
||||
PackageRevision string `json:"packageRevision,omitempty"`
|
||||
TimeStamp string `json:"timestamp,omitempty"`
|
||||
}
|
||||
|
||||
// ConanfileEntry represents a single "Requires" entry from a conanfile.txt.
|
||||
type ConanfileEntry struct {
|
||||
Ref string `mapstructure:"ref" json:"ref"`
|
||||
|
||||
Reference in New Issue
Block a user