sadadw1 opened a new pull request, #692:
URL: https://github.com/apache/ozhera/pull/692

   ### Ⅰ. Describe what this PR did
   
   macOS writes ._* AppleDouble metadata files whenever files live on a 
non-native filesystem (exFAT, FAT, NTFS, some network shares). The 
protobuf-maven-plugin default include pattern **/*.proto matches 
._*MyService.proto, so these junk files are passed to protoc and the build dies 
with:
   
   Invalid control characters encountered in text.
   
   Reproduced with protoc 3.24.0 on a synthetic ._* file, and with a full mvn 
compile on JDK 21: the plugin reports the failure exactly as above.
   
   Changes:
   
   - ozhera-demo-client-server and ozhera-demo-server-server: add excludes 
**/._* to the protobuf-maven-plugin configuration so AppleDouble files are 
never compiled (verified: with a ._*MyService.proto present the build compiles 
1 proto file instead of 2 and passes)
   - .gitignore: ignore ._* and __MACOSX/ so metadata files can never be 
committed
   
   ### Ⅱ. Does this pull request fix one issue?
   
   No.
   
   ### Ⅲ. Why not add test cases (unit test/integration test)?
   
   Build configuration only, no functional code change.
   
   ### Ⅳ. Describe how to verify it
   
   1. Copy any binary junk file to 
ozhera-demo-client/ozhera-demo-client-server/src/main/proto/._MyService.proto
   2. mvn generate-sources -pl ozhera-demo-client/ozhera-demo-client-server -am
   3. Before this change protoc fails on the metadata file; after it the build 
succeeds and reports Compiling 1 proto file(s)
   
   Same check passes for ozhera-demo-server-server.
   
   ### Ⅴ. Special notes for reviews
   
   None.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to