From 68b0730ddaae6f8466b0122e747ef75a300ac353 Mon Sep 17 00:00:00 2001 From: appflowy Date: Wed, 9 Feb 2022 00:47:43 +0800 Subject: [PATCH] ci: disable dart pb gen --- frontend/scripts/makefile/protobuf.toml | 2 ++ shared-lib/lib-infra/src/pb_gen.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/scripts/makefile/protobuf.toml b/frontend/scripts/makefile/protobuf.toml index f67774fccf..5dc076a013 100644 --- a/frontend/scripts/makefile/protobuf.toml +++ b/frontend/scripts/makefile/protobuf.toml @@ -26,6 +26,8 @@ script = """ echo "Install protoc_plugin (Dart)" dart pub global activate protoc_plugin export PATH="$HOME/.pub-cache/bin:$PATH" + +cargo install --version 2.22.1 protobuf-codegen """ script_runner = "@shell" diff --git a/shared-lib/lib-infra/src/pb_gen.rs b/shared-lib/lib-infra/src/pb_gen.rs index b61bbb66ab..b63c6a0067 100644 --- a/shared-lib/lib-infra/src/pb_gen.rs +++ b/shared-lib/lib-infra/src/pb_gen.rs @@ -21,8 +21,8 @@ pub fn gen(name: &str, root: &str) { } } - #[cfg(feature = "dart")] - gen_pb_for_dart(name, root, &paths, &file_names); + // #[cfg(feature = "dart")] + // gen_pb_for_dart(name, root, &paths, &file_names); protoc_rust::Codegen::new() .out_dir("./src/protobuf/model")