Skip to content

Commit c6ba491

Browse files
committed
fix: proto file generation based on conan2
1 parent 28da4db commit c6ba491

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

faasmctl/bin/gen_proto_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ def gen_proto_files(clean=False):
6363

6464
# Find the right protoc binary
6565
docker_exec_prefix = "docker exec {}".format(tmp_ctr_name)
66-
find_protoc_cmd = "{} bash -c 'find ~/.conan -name protoc'".format(
66+
find_protoc_cmd = "{} bash -c 'find ~/.conan2 -name protoc'".format(
6767
docker_exec_prefix
6868
)
6969
protoc_bin = (
7070
run(find_protoc_cmd, shell=True, capture_output=True)
7171
.stdout.decode("utf-8")
7272
.split("\n")
7373
)
74-
p_bin = [p_bin for p_bin in protoc_bin if "build_subfolder" in p_bin]
74+
p_bin = [p_bin for p_bin in protoc_bin if "bin" in p_bin]
7575
p_bin = p_bin[0].strip()
7676

7777
# Generate python protobuf files

0 commit comments

Comments
 (0)