Skip to content

fix: gracefully handle missing proto/src directories in ProtobufNoCheckInHeaderProcessor - #855

Merged
sofisl merged 1 commit into
mainfrom
fix-proto-src-iterator
Aug 12, 2026
Merged

fix: gracefully handle missing proto/src directories in ProtobufNoCheckInHeaderProcessor#855
sofisl merged 1 commit into
mainfrom
fix-proto-src-iterator

Conversation

@sofisl

@sofisl sofisl commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

This PR adds a safety check to ProtobufNoCheckInHeaderProcessor to ensure the proto/src directory actually exists before attempting to traverse it. Previously, if a library did not contain a proto/src directory (which is common for certain Google Cloud packages like accessapproval), the post-processor would crash with a fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(././proto/src): Failed to open directory.

Fixes googleapis/librarian#7260

@sofisl
sofisl requested a review from a team as a code owner August 12, 2026 21:54

@Hectorhammett Hectorhammett left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@sofisl
sofisl merged commit 1361453 into main Aug 12, 2026
14 checks passed
@sofisl
sofisl deleted the fix-proto-src-iterator branch August 12, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fatal Error in PHP Post-Processor when generating AccessApproval

2 participants