conan profile show default or conan profile show <profile> if custom profile is in use)[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=9
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]
conan install zlib/1.2.11@ -b
Click to expand log
ERROR: zlib/1.2.11: Error in source() method, line 35
tools.get(**self.conan_data["sources"]["{}_mirror".format(self.version)])
KeyError: '1.2.11_mirror'
Content of conandata.yml in source and export directories:
sources:
1.2.11:
sha256: c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
url: https://zlib.net/zlib-1.2.11.tar.gz
1.2.11_mirror field is missing (deleted by conan install through a new feature?).
Workaround: use an array of urls under version field in conandata.yml, and replace try/except by a loop.
This is because the conan-center KB-H031 CONANDATA.YML REDUCE hook removes all other versions.
I believe this issue is similar to the one we are discussing about in https://github.com/conan-io/conan-center-index/pull/1060
This is still under discussion and consideration of a new feature in the Conan client. Please follow the conversation here #6349
Issue link is broken