Skip to content

Commit bf4a7a8

Browse files
committed
pin protobuf
1 parent f96f8b6 commit bf4a7a8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

conanfile.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def requirements(self):
4747

4848
# The SDK supports older grpc and protobuf, but these are the oldest
4949
# maintained conan packages.
50-
self.requires('protobuf/[>=3.17.1]')
50+
self.requires('protobuf/[>=3.17.1 <=5.27.0]')
5151

5252
if self.settings.compiler.cppstd in ["14", "gnu14"]:
5353
self.requires('grpc/[>=1.48.4 <1.70.0]')
@@ -59,8 +59,12 @@ def requirements(self):
5959

6060
def build_requirements(self):
6161
if self.options.offline_proto_generation:
62-
self.tool_requires('grpc/[>=1.48.4]')
63-
self.tool_requires('protobuf/[>=3.17.1]')
62+
if self.settings.compiler.cppstd in ["14", "gnu14"]:
63+
self.tool_requires('grpc/[>=1.48.4 <1.70.0]')
64+
else:
65+
self.tool_requires('grpc/[>=1.48.4]')
66+
67+
self.tool_requires('protobuf/[>=3.17.1 <= 5.27.0]')
6468

6569
def layout(self):
6670
cmake_layout(self)

0 commit comments

Comments
 (0)