Skip to content

fix: remove empty fragments directories from packaged output - #854

Open
amarkdotdev wants to merge 1 commit into
googleapis:mainfrom
amarkdotdev:fix/621-empty-fragments-dirs
Open

fix: remove empty fragments directories from packaged output#854
amarkdotdev wants to merge 1 commit into
googleapis:mainfrom
amarkdotdev:fix/621-empty-fragments-dirs

Conversation

@amarkdotdev

Copy link
Copy Markdown

Summary

  • Delete fragments/ after fragment injection in the post-processor.
  • Also prune any leftover fragments/ tree in php_gapic_pkg.bzl before creating the package tarball.
  • Update the fragment injection unit test to assert the directory is removed.

Fixes #621

Notes

  • Contributor will sign the Google CLA if required for this repository.

Test plan

  • Run FragmentInjectionProcessorTest
  • Build a PHP GAPIC package and confirm the tarball has no empty fragments/ directories

Delete fragment sources after post-processing injection and prune any
leftover fragments/ tree before tarring so packages no longer ship
empty directory hierarchies.

Signed-off-by: amarkdotdev <amarkdotdev@users.noreply.github.com>
@amarkdotdev
amarkdotdev requested a review from a team as a code owner August 9, 2026 19:50
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.

V2 post-processing step leaves "fragments" directories

1 participant