Skip to content

librarian: [generate] Support APIs that do not contain services #1712

@parthea

Description

@parthea

https://github.com/googleapis/googleapis/tree/master/google/apps/card/v1 does not have a service config, however the service config should not be necessary for this API since the API does not contain any services/rpcs.

See stack trace below when trying to generate google/apps/card/v1 which does not have a service config.

partheniou@partheniou-vm-3:~/git/google-cloud-python$ librarian generate
2025/08/13 16:21:14 INFO librarian arguments=[generate]
2025/08/13 16:21:14 INFO repo not specified, using current working directory as repo root path=/usr/local/google/home/partheniou/git/google-cloud-python
2025/08/13 16:21:14 INFO Temporary working directory dir=/tmp/librarian-20250813T162114Z
2025/08/13 16:21:14 INFO Checking for repository dir=/tmp/librarian-20250813T162114Z/googleapis
2025/08/13 16:21:14 INFO Repository not found, executing clone
2025/08/13 16:21:14 INFO Cloning repository url=https://github.com/googleapis/googleapis dir=/tmp/librarian-20250813T162114Z/googleapis
Enumerating objects: 145926, done.
Counting objects: 100% (27/27), done.
Compressing objects: 100% (18/18), done.
Total 145926 (delta 10), reused 11 (delta 9), pack-reused 145899 (from 3)
2025/08/13 16:22:34 INFO Opening repository dir=/usr/local/google/home/partheniou/git/google-cloud-python
2025/08/13 16:23:33 populating service config: could not find service config in /tmp/librarian-20250813T162114Z/googleapis/google/apps/card/v1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions