-
Notifications
You must be signed in to change notification settings - Fork 42
librarian: generate error when .librarian/generate-response.json is missing #1741
Copy link
Copy link
Closed
Closed
Copy link
Description
Expected
The presence of .librarian/generate-response.json at the conclusion of generate execution should be optional.
Actual
chrisdsmith@chrisdsmith:~/oss/librarian$ ./run-librarian-integration-test.sh
Using googleapis source from /usr/local/google/home/chrisdsmith/oss/googleapis
--- Git Reset Summary ---
HEAD is now at c559f93cdc rm .librarian/generate-response.json
Removing .librarian/generator-input/
~/oss/librarian
Running librarian...
2025/08/14 18:45:42 INFO librarian arguments="[generate --image=gcr.io/cloud-devrel-public-resources/librarian-go:infrastructure-public-image-latest --repo=/usr/local/google/home/chrisdsmith/oss/google-cloud-go-2 --library=secretmanager --api=google/cloud/secretmanager/v1,google/cloud/secretmanager/v1beta2 --api-source=/usr/local/google/home/chrisdsmith/oss/googleapis]"
2025/08/14 18:45:43 INFO Temporary working directory dir=/tmp/librarian-20250814T184543Z
2025/08/14 18:45:43 INFO Opening repository dir=/usr/local/google/home/chrisdsmith/oss/googleapis
2025/08/14 18:45:44 INFO Opening repository dir=/usr/local/google/home/chrisdsmith/oss/google-cloud-go-2
2025/08/14 18:45:51 INFO Code will be generated dir=/tmp/librarian-20250814T184543Z/output
2025/08/14 18:45:51 INFO Performing generation for library id=secretmanager
2025/08/14 18:45:51 INFO === Docker start ===============================================================
2025/08/14 18:45:51 INFO /usr/bin/docker run --rm -v /usr/local/google/home/chrisdsmith/oss/google-cloud-go-2/.librarian:/librarian -v /usr/local/google/home/chrisdsmith/oss/google-cloud-go-2/.librarian/generator-input:/input -v /tmp/librarian-20250814T184543Z/output:/output -v /usr/local/google/home/chrisdsmith/oss/googleapis:/source:ro --user 975507:89939 gcr.io/cloud-devrel-public-resources/librarian-go:infrastructure-public-image-latest generate --librarian=/librarian --input=/input --output=/output --source=/source
2025/08/14 18:45:51 INFO --------------------------------------------------------------------------------
time=2025-08-14T18:45:51.602Z level=INFO msg="librariangen: invoked" args="[/usr/local/bin/librariangen generate --librarian=/librarian --input=/input --output=/output --source=/source]"
time=2025-08-14T18:45:51.603Z level=INFO msg="processing api" service_dir=/source/google/cloud/secretmanager/v1
time=2025-08-14T18:45:51.915Z level=INFO msg="processing api" service_dir=/source/google/cloud/secretmanager/v1beta2
time=2025-08-14T18:46:02.608Z level=INFO msg="librariangen: finished successfully"
2025/08/14 18:46:04 INFO === Docker end =================================================================
2025/08/14 18:46:04 WARN fail to remove file name=/usr/local/google/home/chrisdsmith/oss/google-cloud-go-2/.librarian/generate-response.json err="remove /usr/local/google/home/chrisdsmith/oss/google-cloud-go-2/.librarian/generate-response.json: no such file or directory"
2025/08/14 18:46:04 failed to read response file, path: /usr/local/google/home/chrisdsmith/oss/google-cloud-go-2/.librarian/generate-response.json, error: open /usr/local/google/home/chrisdsmith/oss/google-cloud-go-2/.librarian/generate-response.json: no such file or directory
exit status 1Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels