Info output
Warning
This is an experimental feature subject to breaking changes in future releases.
The conan info provides a --json parameter to generate a file containing the output of the command.
There are several possible outputs depending on other arguments:
Build order
Warning
The command conan info --build-order
is deprecated in favor of conan lock build-order.
The build order printed with the argument --build-order can be formatted as JSON. It will show a list of lists where the references inside each nested one can be built in parallel.
{
"groups":[
[
"liba/0.1@lasote/stable",
"libe/0.1@lasote/stable",
"libf/0.1@lasote/stable"
],
[
"libb/0.1@lasote/stable",
"libc/0.1@lasote/stable"
]
]
}
Nodes to build
When called with the argument --build it will retrieve the list of nodes to be built according to the build policy. Output will be just a list of references.
[
"h0/0.1@lu/st",
"h1a/0.1@lu/st",
"h1c/0.1@lu/st",
"h2a/0.1@lu/st",
"h2c/0.1@lu/st"
]
Info output
The output of a conan info call over a reference or a path gives information about all the nodes involved in its build graph; the generated JSON file will contain a list with the information for each of the nodes.
[
{
"reference":"liba/0.1@lasote/stable",
"is_ref":true,
"display_name":"liba/0.1@lasote/stable",
"id":"8da7d879f40d12efabc9a1f26ab12f1b6cafb6ad",
"build_id":null,
"url":"myurl",
"license":[
"MIT"
],
"description": "project A",
"recipe":"No remote",
"binary":"Missing",
"creation_date":"2019-01-29 17:22:41",
"required_by":[
"libc/0.1@lasote/stable",
"libb/0.1@lasote/stable"
]
},
{
"reference":"libb/0.1@lasote/stable",
"is_ref":true,
"display_name":"libb/0.1@lasote/stable",
"id":"c4ec2bf350e2a02405029ab366535e26372a4f63",
"build_id":null,
"url":"myurl",
"license":[
"MIT"
],
"description": "project C",
"recipe":"No remote",
"binary":"Missing",
"creation_date":"2019-01-29 17:22:41",
"required_by":[
"conanfile.py (libd/0.1@None/None)"
],
"requires":[
"liba/0.1@lasote/stable",
"libe/0.1@lasote/stable"
]
},
{ "...": "..."}
]
Note
As this is a marked as experimental, some fields may be removed or added.