Skip to content

Commit

Permalink
fix: support generating protos from symlinks (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
notfilippo authored May 13, 2024
1 parent 5a794e5 commit fe432b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn text(out_dir: &Path) -> Result<(), Box<dyn Error>> {
for schema_path in WalkDir::new(TEXT_ROOT)
.into_iter()
.filter_map(Result::ok)
.filter(|entry| entry.file_type().is_file())
.filter(|entry| entry.file_type().is_file() || entry.file_type().is_symlink())
.filter(|entry| {
entry
.path()
Expand Down Expand Up @@ -203,7 +203,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let protos = WalkDir::new(PROTO_ROOT)
.into_iter()
.filter_map(Result::ok)
.filter(|entry| entry.file_type().is_file())
.filter(|entry| entry.file_type().is_file() || entry.file_type().is_symlink())
.filter(|entry| {
entry
.path()
Expand Down

0 comments on commit fe432b6

Please sign in to comment.