mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: don't parse unexpected files while generating protobuf (#4411)
This commit is contained in:
@ -138,7 +138,7 @@ fn write_rust_crate_mod_file(crate_contexts: &[ProtobufCrateContext]) {
|
|||||||
mod_file_content.push_str("// Auto-generated, do not edit\n");
|
mod_file_content.push_str("// Auto-generated, do not edit\n");
|
||||||
walk_dir(
|
walk_dir(
|
||||||
context.protobuf_crate.proto_output_path(),
|
context.protobuf_crate.proto_output_path(),
|
||||||
|e| !e.file_type().is_dir(),
|
|e| !e.file_type().is_dir() && !e.file_name().to_string_lossy().starts_with('.'),
|
||||||
|_, name| {
|
|_, name| {
|
||||||
let c = format!("\nmod {};\npub use {}::*;\n", &name, &name);
|
let c = format!("\nmod {};\npub use {}::*;\n", &name, &name);
|
||||||
mod_file_content.push_str(c.as_ref());
|
mod_file_content.push_str(c.as_ref());
|
||||||
|
Reference in New Issue
Block a user