update requires to use list; remove field (#1234)

This commit is contained in:
Christopher Angelo Phillips 2022-09-30 11:57:13 -04:00 committed by GitHub
parent b9b13d5525
commit dd7c654ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -16,15 +16,14 @@ var _ common.ParserFn = parseConanlock
type conanLock struct { type conanLock struct {
GraphLock struct { GraphLock struct {
Nodes map[string]struct { Nodes map[string]struct {
Ref string `json:"ref"` Ref string `json:"ref"`
PackageID string `json:"package_id"` PackageID string `json:"package_id"`
Context string `json:"context"` Context string `json:"context"`
Prev string `json:"prev"` Prev string `json:"prev"`
Requires string `json:"requires"` Requires []string `json:"requires"`
BuildRequires string `json:"build_requires"` PythonRequires string `json:"py_requires"`
PythonRequires string `json:"py_requires"` Options string `json:"options"`
Options string `json:"options"` Path string `json:"path"`
Path string `json:"path"`
} `json:"nodes"` } `json:"nodes"`
} `json:"graph_lock"` } `json:"graph_lock"`
Version string `json:"version"` Version string `json:"version"`

View File

@ -4,6 +4,7 @@
"0": { "0": {
"ref": "zlib/1.2.12", "ref": "zlib/1.2.12",
"options": "fPIC=True\nshared=False", "options": "fPIC=True\nshared=False",
"requires": [],
"path": "all/conanfile.py", "path": "all/conanfile.py",
"context": "host" "context": "host"
} }