-
Notifications
You must be signed in to change notification settings - Fork 377
Description
Describe the bug
Using "conan download" with "--list" specified does not download any packages/binaries, even when they are listed inside pkglist.json.
Using just pattern "conan download zlib/1.3.1:*" works fine
Conan 2.20.1, also tested with conan 2.12.2
How to reproduce it
It can be reproduced following official tutorial
https://docs.conan.io/2/examples/commands/pkglists.html#examples-commands-pkglists
I change pattern and query from tutorial to decrease number of search results
In fresh empty environment with no profiles execute:
conan list "zlib/1.3.1#latest:*" -p "os=Windows AND options.shared=True" --format=json -r=conancenter > pkglist.json
pkglist.json
{
"conancenter": {
"zlib/1.3.1": {
"revisions": {
"b8bc2603263cf7eccbd6e17e66b0ed76": {
"timestamp": 1733936244.862,
"packages": {
"4a51572e3450257b106bc02ae2dcc4b6fd1de072": {
"info": {
"settings": {
"arch": "armv8",
"build_type": "Release",
"compiler": "msvc",
"compiler.runtime": "dynamic",
"compiler.runtime_type": "Release",
"compiler.version": "194",
"os": "Windows"
},
"options": {
"shared": "True"
}
}
},
"ae9eaf478e918e6470fe64a4d8d4d9552b0b3606": {
"info": {
"settings": {
"arch": "x86_64",
"build_type": "Release",
"compiler": "msvc",
"compiler.runtime": "dynamic",
"compiler.runtime_type": "Release",
"compiler.version": "192",
"os": "Windows"
},
"options": {
"shared": "True"
}
}
},
"f7dcd1cec4586c154a242a765a1de011300db8e2": {
"info": {
"settings": {
"arch": "x86_64",
"build_type": "Release",
"compiler": "msvc",
"compiler.runtime": "dynamic",
"compiler.runtime_type": "Release",
"compiler.version": "193",
"os": "Windows"
},
"options": {
"shared": "True"
}
}
}
}
}
}
}
}
}
conan download --list=pkglist.json -r=conancenter -f json > downloaded.json
Note that "downloaded.json" is same as pkglist.json, it contains all packages, as if they are successfully downloaded
downloaded.json
{
"Local Cache": {
"zlib/1.3.1": {
"revisions": {
"b8bc2603263cf7eccbd6e17e66b0ed76": {
"timestamp": 1733936244.862,
"packages": {
"4a51572e3450257b106bc02ae2dcc4b6fd1de072": {
"info": {
"settings": {
"arch": "armv8",
"build_type": "Release",
"compiler": "msvc",
"compiler.runtime": "dynamic",
"compiler.runtime_type": "Release",
"compiler.version": "194",
"os": "Windows"
},
"options": {
"shared": "True"
}
}
},
"ae9eaf478e918e6470fe64a4d8d4d9552b0b3606": {
"info": {
"settings": {
"arch": "x86_64",
"build_type": "Release",
"compiler": "msvc",
"compiler.runtime": "dynamic",
"compiler.runtime_type": "Release",
"compiler.version": "192",
"os": "Windows"
},
"options": {
"shared": "True"
}
}
},
"f7dcd1cec4586c154a242a765a1de011300db8e2": {
"info": {
"settings": {
"arch": "x86_64",
"build_type": "Release",
"compiler": "msvc",
"compiler.runtime": "dynamic",
"compiler.runtime_type": "Release",
"compiler.version": "193",
"os": "Windows"
},
"options": {
"shared": "True"
}
}
}
}
}
}
}
}
}
conan list zlib/1.3.1:* -f json > cache.json
cache.json
{
"Local Cache": {
"zlib/1.3.1": {
"revisions": {
"b8bc2603263cf7eccbd6e17e66b0ed76": {
"timestamp": 1733936244.862,
"packages": {}
}
}
}
}
}