Skip to content

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

Merged
aandreassa merged 2 commits into
mainfrom
empty-service-require-fix
Jul 22, 2026
Merged

fix(generator): omit empty services from require list and default service selection#1308
aandreassa merged 2 commits 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
@aandreassa
aandreassa merged commit 29c8be0 into main Jul 22, 2026
15 checks passed
@aandreassa
aandreassa deleted the empty-service-require-fix branch July 22, 2026 23:21
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