Skip to content

fix(generator): omit empty services from require list and default service selection#1308

Open
aandreassa wants to merge 1 commit into
mainfrom
empty-service-require-fix
Open

fix(generator): omit empty services from require list and default service selection#1308
aandreassa wants to merge 1 commit into
mainfrom
empty-service-require-fix

Conversation

@aandreassa

@aandreassa aandreassa commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Do not generate require statements in the package entry point for services with zero RPC methods, since their client files are skipped during generation.

This causes a failure seen in googleapis/google-cloud-ruby#34675

Also, update GemPresenter#first_non_common_service to ignore empty services so they are not selected as primary services for Rakefile credentials setup and quickstart documentation.

Currently, two libraries have 'empty' services.

  1. google-cloud-dataplex-v1
  2. google-cloud-sql-v1

A demo of updates generated locally can be seen in https://github.com/googleapis/google-cloud-ruby/pull/34726/changes

This PR is a follow-up from #1279

@aandreassa aandreassa marked this pull request as ready for review July 8, 2026 00:11
@aandreassa aandreassa requested a review from a team as a code owner July 8, 2026 00:11
…vice selection

Do not generate require statements in the package entry point for services
with zero RPC methods, since their client files are skipped during generation.

This causes a failure seen in googleapis/google-cloud-ruby#34675

Also, update `GemPresenter#first_non_common_service` to ignore empty services
so they are not selected as primary services for Rakefile credentials setup
and quickstart documentation.
@aandreassa aandreassa force-pushed the empty-service-require-fix branch from 3e62d5d to a19317b Compare July 8, 2026 00:37
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.

1 participant