Skip to content

librarian: [generate] help debug error invalid path: "google/area120/tables/v1alpha1" #1713

@parthea

Description

@parthea

I received the following error but it's not immediately obvious what the issue is.

invalid library at index 8: invalid api at index 0: invalid path: "google/area120/tables/v1alpha1"

https://github.com/googleapis/googleapis/tree/master/google/area120/tables/v1alpha1

state.yaml

image: python-librarian-generator:latest
libraries:
- id: google-area120-tables
  version: 0.11.17
  last_generated_commit: 97a83d76a09a7f6dcab43675c87bdfeb5bcf1cb5
  apis:
  - path: google/area120/tables/v1alpha1
  source_roots:
  - ^packages/google-area120-tables
  preserve_regex:
  - .OwlBot.yaml
  - CHANGELOG.md
  - docs/CHANGELOG.md
  - docs/README.rst
  - samples/README.txt
  - tar.gz
  - gapic_version.py
  - samples/generated_samples/snippet_metadata_
  - scripts/client-post-processing
  remove_regex:
  - ^packages/google-area120-tables

Full log

partheniou@partheniou-vm-3:~/git/google-cloud-python$ librarian generate
2025/08/13 17:44:41 INFO librarian arguments=[generate]
2025/08/13 17:44:41 INFO repo not specified, using current working directory as repo root path=/usr/local/google/home/partheniou/git/google-cloud-python
2025/08/13 17:44:41 INFO Temporary working directory dir=/tmp/librarian-20250813T174441Z
2025/08/13 17:44:41 INFO Checking for repository dir=/tmp/librarian-20250813T174441Z/googleapis
2025/08/13 17:44:41 INFO Repository not found, executing clone
2025/08/13 17:44:41 INFO Cloning repository url=https://github.com/googleapis/googleapis dir=/tmp/librarian-20250813T174441Z/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 17:46:01 INFO Opening repository dir=/usr/local/google/home/partheniou/git/google-cloud-python
2025/08/13 17:46:13 validating librarian state: invalid library at index 0: invalid api at index 0: invalid path: "google/area120/tables/v1alpha1"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions