Open kontrybutor opened 2 years ago
Hi!
I am also affected by the same issue. Is there any workaround or any estimation when a fix will be available?
@ultinous-amegyesi need to open a new PR bumping google-cloud-cpp dependencies. You could open a PR as first contribution 😉
As workaround, you need to declare protobuf/3.21.1
with override=True
. So, Conan install install the latest version and will force your version.
@uilianries Thanks for the override idea. I solved the problem by setting the following in conanfile.py. It might not be the optimal/best solution but it works.
def requirements(self):
self.requires("grpc/1.43.2", override=True)
self.requires("protobuf/3.20.0", override=True)
@uilianries here is a PR already, but it needs to be approved more? https://github.com/conan-io/conan-center-index/pull/11632
@ultinous-attila the author only asked for access request 4 days ago. It's a crucial step to merge PR. Now, need to wait for next users wave to be approved, the the CI will check again.
Consider updating to the 2.x series. Maybe close these old bugs about the google-cloud-cpp/1.x series too?
Package and Environment Details
Conan profile
Configuration for profile default:
[settings] os=Linux os_build=Linux arch=x86_64 arch_build=x86_64 compiler=gcc compiler.version=8 compiler.libcxx=libstdc++ build_type=Release
[options] [conf] [build_requires] [env]
Steps to reproduce
conan install google-cloud-cpp/1.40.1@ --build
(the newest one on CCI)google-cloud-cpp
depends ongrpc/1.45.2
that has a dependency toprotobuf/3.21.1
.grpc
's recipe has been updated recently and probably that's the reason.Logs
Click to expand log
``` conan@a349ac08a500:~$ conan install google-cloud-cpp/1.40.1@ --build Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++ compiler.version=8 os=Linux os_build=Linux [options] [build_requires] [env] google-cloud-cpp/1.40.1: Not found in local cache, looking in remotes... google-cloud-cpp/1.40.1: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [29.04k] Downloading conan_export.tgz completed [0.26k] Decompressing conan_export.tgz completed [0.00k] google-cloud-cpp/1.40.1: Downloaded recipe revision 0 protobuf/3.20.0: Not found in local cache, looking in remotes... protobuf/3.20.0: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [14.21k] Downloading conan_export.tgz completed [0.25k] Decompressing conan_export.tgz completed [0.00k] protobuf/3.20.0: Downloaded recipe revision 0 zlib/1.2.12: Not found in local cache, looking in remotes... zlib/1.2.12: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.33k] Downloading conanfile.py completed [4.19k] Downloading conan_export.tgz completed [0.31k] Decompressing conan_export.tgz completed [0.00k] zlib/1.2.12: Downloaded recipe revision 0 grpc/1.45.2: Not found in local cache, looking in remotes... grpc/1.45.2: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.34k] Downloading conanfile.py completed [19.65k] Downloading conan_export.tgz completed [0.31k] Decompressing conan_export.tgz completed [0.00k] grpc/1.45.2: Downloaded recipe revision 0 WARN: grpc/1.45.2: requirement openssl/1.1.1o overridden by google-cloud-cpp/1.40.1 to openssl/1.1.1n WARN: grpc/1.45.2: requirement protobuf/3.21.1 overridden by google-cloud-cpp/1.40.1 to protobuf/3.20.0 abseil/20211102.0: Not found in local cache, looking in remotes... abseil/20211102.0: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.30k] Downloading conanfile.py completed [10.67k] Downloading conan_export.tgz completed [0.30k] Decompressing conan_export.tgz completed [0.00k] abseil/20211102.0: Downloaded recipe revision 0 c-ares/1.18.1: Not found in local cache, looking in remotes... c-ares/1.18.1: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [4.41k] Downloading conan_export.tgz completed [0.25k] Decompressing conan_export.tgz completed [0.00k] c-ares/1.18.1: Downloaded recipe revision 0 openssl/1.1.1n: Not found in local cache, looking in remotes... openssl/1.1.1n: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.18k] Downloading conanfile.py completed [39.44k] Downloading conan_export.tgz completed [0.29k] Decompressing conan_export.tgz completed [0.00k] openssl/1.1.1n: Downloaded recipe revision 0 re2/20220201: Not found in local cache, looking in remotes... re2/20220201: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [2.29k] Downloading conan_export.tgz completed [0.25k] re2/20220201: Downloaded recipe revision 0 googleapis/cci.20220531: Not found in local cache, looking in remotes... googleapis/cci.20220531: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.21k] Downloading conanfile.py completed [6.88k] Downloading conan_export.tgz completed [1.99k] Decompressing conan_export.tgz completed [0.00k] googleapis/cci.20220531: Downloaded recipe revision 0 WARN: googleapis/cci.20220531: requirement protobuf/3.21.1 overridden by grpc/1.45.2 to protobuf/3.20.0 grpc-proto/cci.20220627: Not found in local cache, looking in remotes... grpc-proto/cci.20220627: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.10k] Downloading conanfile.py completed [0.99k] Downloading conan_export.tgz completed [0.26k] Decompressing conan_export.tgz completed [0.00k] grpc-proto/cci.20220627: Downloaded recipe revision 0 nlohmann_json/3.10.5: Not found in local cache, looking in remotes... nlohmann_json/3.10.5: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.10k] Downloading conanfile.py completed [1.14k] Downloading conan_export.tgz completed [0.24k] Decompressing conan_export.tgz completed [0.00k] nlohmann_json/3.10.5: Downloaded recipe revision 0 crc32c/1.1.2: Not found in local cache, looking in remotes... crc32c/1.1.2: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [2.95k] Downloading conan_export.tgz completed [0.24k] Decompressing conan_export.tgz completed [0.00k] crc32c/1.1.2: Downloaded recipe revision 0 libcurl/7.80.0: Not found in local cache, looking in remotes... libcurl/7.80.0: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.23k] Downloading conanfile.py completed [30.49k] Downloading conan_export.tgz completed [0.23k] Decompressing conan_export.tgz completed [0.00k] libcurl/7.80.0: Downloaded recipe revision 0 WARN: libcurl/7.80.0: requirement openssl/1.1.1q overridden by google-cloud-cpp/1.40.1 to openssl/1.1.1n abseil/20211102.0: Forced build from source c-ares/1.18.1: Forced build from source crc32c/1.1.2: Forced build from source grpc-proto/cci.20220627: Forced build from source nlohmann_json/3.10.5: Forced build from source openssl/1.1.1n: Forced build from source re2/20220201: Forced build from source zlib/1.2.12: Forced build from source libcurl/7.80.0: Forced build from source protobuf/3.20.0: Forced build from source googleapis/cci.20220531: Forced build from source grpc/1.45.2: Forced build from source google-cloud-cpp/1.40.1: Forced build from source libtool/2.4.6: Not found in local cache, looking in remotes... libtool/2.4.6: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.28k] Downloading conanfile.py completed [9.40k] Downloading conan_export.tgz completed [0.30k] Decompressing conan_export.tgz completed [0.00k] libtool/2.4.6: Downloaded recipe revision 0 automake/1.16.5: Not found in local cache, looking in remotes... automake/1.16.5: Trying with 'conancenter'... Downloading conanmanifest.txt completed [1.58k] Downloading conanfile.py completed [5.66k] Downloading conan_export.tgz completed [0.38k] Decompressing conan_export.tgz completed [0.00k] automake/1.16.5: Downloaded recipe revision 0 autoconf/2.71: Not found in local cache, looking in remotes... autoconf/2.71: Trying with 'conancenter'... Downloading conanmanifest.txt completed [1.05k] Downloading conanfile.py completed [4.53k] Downloading conan_export.tgz completed [0.39k] Decompressing conan_export.tgz completed [0.00k] autoconf/2.71: Downloaded recipe revision 0 m4/1.4.19: Not found in local cache, looking in remotes... m4/1.4.19: Trying with 'conancenter'... Downloading conanmanifest.txt completed [1.38k] Downloading conanfile.py completed [5.46k] Downloading conan_export.tgz completed [0.32k] Decompressing conan_export.tgz completed [0.00k] m4/1.4.19: Downloaded recipe revision 0 pkgconf/1.7.4: Not found in local cache, looking in remotes... pkgconf/1.7.4: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.41k] Downloading conanfile.py completed [6.14k] Downloading conan_export.tgz completed [0.37k] Decompressing conan_export.tgz completed [0.00k] pkgconf/1.7.4: Downloaded recipe revision 0 m4/1.4.19: Forced build from source pkgconf/1.7.4: Forced build from source autoconf/2.71: Forced build from source automake/1.16.5: Forced build from source libtool/2.4.6: Forced build from source meson/0.62.1: Not found in local cache, looking in remotes... meson/0.62.1: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.10k] Downloading conanfile.py completed [2.81k] Downloading conan_export.tgz completed [0.24k] Decompressing conan_export.tgz completed [0.00k] meson/0.62.1: Downloaded recipe revision 0 ninja/1.10.2: Not found in local cache, looking in remotes... ninja/1.10.2: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [1.59k] Downloading conan_export.tgz completed [0.25k] Decompressing conan_export.tgz completed [0.00k] ninja/1.10.2: Downloaded recipe revision 0 ninja/1.10.2: Forced build from source meson/0.62.1: Forced build from source gnu-config/cci.20210814: Not found in local cache, looking in remotes... gnu-config/cci.20210814: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.10k] Downloading conanfile.py completed [2.11k] Downloading conan_export.tgz completed [0.28k] Decompressing conan_export.tgz completed [0.00k] gnu-config/cci.20210814: Downloaded recipe revision 0 gnu-config/cci.20210814: Forced build from source protobuf/3.21.1: Not found in local cache, looking in remotes... protobuf/3.21.1: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [14.21k] Downloading conan_export.tgz completed [0.25k] Decompressing conan_export.tgz completed [0.00k] protobuf/3.21.1: Downloaded recipe revision 0 ERROR: Conflict in googleapis/cci.20220531: 'googleapis/cci.20220531' requires 'protobuf/3.21.1' while 'google-cloud-cpp/1.40.1' requires 'protobuf/3.20.0'. To fix this conflict you need to override the package 'protobuf' in your root package. conan@a349ac08a500:~$ ```