The configuration for librarian is stored in librarian.yaml at the root of the repository.
If you want to test any changes to local tools:
-
Follow instructions in your languages’ playbook section for prerequisites (note: this list is not exhaustive).
-
Modify
librarian.yamlto point to new or local versions.- For example, if you want to bump the protoc-gen-java_grpc, you can change
its
versionproperty. - If you want to test a version of the go generation, you can change its
versionproperty to your branch or commit-hash. - For Java, librarian.yaml is configured to build the gapic generator from local path. So you don’t need modifications to test local changes.
- For example, if you want to bump the protoc-gen-java_grpc, you can change
its
-
Re-install the local tools: Run the following command from the root of the
google-cloud-javarepository to compile your local generator changes and update the wrappers:# Retrieve the configured librarian version V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version) # Re-install the local tools go run github.com/googleapis/librarian/cmd/librarian@${V} install
-
Regenerate the client library:
To regenerate all libraries:
go run github.com/googleapis/librarian/cmd/librarian@${V} generate --allOr to regenerate a single library (e.g.,
accessapproval):go run github.com/googleapis/librarian/cmd/librarian@${V} generate accessapproval