Skip to content

librarian: Update configure-request.json to list all libraries for global file edits #1653

@meltsufin

Description

@meltsufin

To support global file edits during library onboarding, the configure command needs to be updated so that the container will receive the context of all libraries in the repository to correctly regenerate manifests and dependency files.

  • configure-request.json is modified to include a list of all libraries in the repository.
  • Each API in the request includes a status field to indicate if it is "new" or "existing".

Example:

{
  "libraries": [
    {
      "id": "google-cloud-secretmanager",
      "apis": [
        {
          "path": "google/cloud/secretmanager/v1",
          "service_config": "secretmanager_v1.yaml",
          "status": "existing"
        },
        {
          "path": "google/cloud/secretmanager/v1beta1",
          "service_config": "secretmanager_v1beta1.yaml",
          "status": "new"
        }
      ],
      "source_roots": [ "secretmanager" ],
      ...
    },
    {
      "id": "google-cloud-pubsub-v1",
      "apis": [
        {
          "path": "google/cloud/pubsub/v1",
          "service_config": "pubsub_v1.yaml",
          "status": "existing"
        }
      ],
      "source_roots": [ "pubsub" ],
      ...
    }
  ]
}

See: go/librarian:global-file-edits

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