Skip to content

fix(php): continue searching sibling directories in _find_copy_target - #2181

Merged
JoeWang1127 merged 3 commits into
googleapis:masterfrom
JoeWang1127:fix/copy-target
Sep 2, 2026
Merged

fix(php): continue searching sibling directories in _find_copy_target#2181
JoeWang1127 merged 3 commits into
googleapis:masterfrom
JoeWang1127:fix/copy-target

Conversation

@JoeWang1127

Copy link
Copy Markdown
Contributor

Previously, _find_copy_target unconditionally returned the result of the recursive call on the first subdirectory encountered. If that branch did not contain the version subdirectory, the search terminated early with None instead of inspecting sibling directories.

Switch to Path.iterdir() and only return early from the recursive call when a matching target is found.

@JoeWang1127
JoeWang1127 requested review from a team as code owners September 2, 2026 17:47
@JoeWang1127
JoeWang1127 merged commit 5de6d98 into googleapis:master Sep 2, 2026
14 checks passed
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.

2 participants