Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: pass unit test
appflowy93863462a261
diff --git a/.github/workflows/frontend_dart.yml b/.github/workflows/frontend_dart.ymlindex c2e8b6b2d0..a94e3b6e8a 100644--- a/.github/workflows/frontend_dart.yml+++ b/.github/workflows/frontend_dart.yml@@ -8,12 +8,8 @@ name: Frontend_Darton:push:branches: [ main ]- paths:- - 'frontend/app_flowy'pull_request:branches: [ main ]- paths:- - 'frontend/app_flowy'diff --git a/.github/workflows/frontend_rust.yml b/.github/workflows/frontend_rust.ymlindex c334073507..484c79d037 100644--- a/.github/workflows/frontend_rust.yml+++ b/.github/workflows/frontend_rust.yml@@ -3,14 +3,8 @@ name: Frontend_Ruston:push:branches: [ main ]- paths:- - 'frontend/rust-lib'- - 'shared-lib'pull_request:branches: [ main ]- paths:- - 'frontend/rust-lib'- - 'shared-lib'env:CARGO_TERM_COLOR: alwaysdiff --git a/frontend/Makefile.toml b/frontend/Makefile.tomlindex 498a86331d..46f7279240 100644--- a/frontend/Makefile.toml+++ b/frontend/Makefile.toml@@ -158,7 +158,7 @@ script_runner = "@duckscript"condition = { env_set = [ "FLUTTER_FLOWY_SDK_PATH"] }script = ["""- cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/flowy-folder+ cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/../shared-lib/error-codecargo build -vv""",]diff --git a/shared-lib/error-code/src/protobuf/model/document b/shared-lib/error-code/src/protobuf/model/documentdeleted file mode 100644index e6c7f34086..0000000000--- a/shared-lib/error-code/src/protobuf/model/document+++ /dev/null@@ -1,5 +0,0 @@-#![cfg_attr(rustfmt, rustfmt::skip)]-// Auto-generated, do not edit--mod error_code;-pub use error_code::*;diff --git a/shared-lib/lib-infra/Cargo.toml b/shared-lib/lib-infra/Cargo.tomlindex e95cf3f5df..6d3c5a2f1d 100644--- a/shared-lib/lib-infra/Cargo.toml+++ b/shared-lib/lib-infra/Cargo.toml@@ -27,7 +27,7 @@ syn = { version = "1.0.60", features = ["extra-traits", "parsing", "derive", "fufancy-regex = { version = "0.5.0", optional = true }lazy_static = { version = "1.4.0", optional = true }tera = { version = "1.5.0", optional = true}-itertools = {versino = "0.10", optional = true}+itertools = { version = "0.10", optional = true }phf = { version = "0.8.0", features = ["macros"], optional = true }console = {version = "0.14.0", optional = true}diff --git a/shared-lib/lib-infra/src/proto_gen/template/mod.rs b/shared-lib/lib-infra/src/proto_gen/template/mod.rsindex e610bc373b..a2ef4da1d5 100644--- a/shared-lib/lib-infra/src/proto_gen/template/mod.rs+++ b/shared-lib/lib-infra/src/proto_gen/template/mod.rs@@ -8,13 +8,13 @@ use std::io::Read;use tera::Tera;pub fn get_tera(directory: &str) -> Tera {- let mut root = format!("{}/../", file!());+ let mut root = format!("{}/src/proto_gen/template/", env!("CARGO_MANIFEST_DIR"));root.push_str(directory);- let root_absolute_path = match std::fs::canonicalize(root) {+ let root_absolute_path = match std::fs::canonicalize(&root) {Ok(p) => p.as_path().display().to_string(),Err(e) => {- panic!("canonicalize {} failed {:?}", root, e);+ panic!("❌ Canonicalize file path {} failed {:?}", root, e);}};