@@ -330,6 +330,22 @@ def _copy_files_needed_for_post_processing(output: str, input: str, library_id:
330330 os .makedirs (
331331 f"{ output } /{ path_to_library } /scripts/client-post-processing" , exist_ok = True
332332 )
333+ # This is needed to avoid the following error for proto-only libraries
334+ # Traceback (most recent call last):
335+ # File "/app/./cli.py", line 535, in handle_generate
336+ # _run_post_processor(output, library_id)
337+ # File "/app/./cli.py", line 300, in _run_post_processor
338+ # python_mono_repo.owlbot_main(path_to_library)
339+ # File "/usr/local/lib/python3.9/site-packages/synthtool/languages/python_mono_repo.py", line 310, in owlbot_main
340+ # create_symlink_docs_readme(package_dir)
341+ # File "/usr/local/lib/python3.9/site-packages/synthtool/languages/python_mono_repo.py", line 102, in create_symlink_docs_readme
342+ # create_symlink_in_docs_dir(package_dir, "README.rst")
343+ # File "/usr/local/lib/python3.9/site-packages/synthtool/languages/python_mono_repo.py", line 82, in create_symlink_in_docs_dir
344+ # os.chdir(f"{package_dir}/docs")
345+ # FileNotFoundError: [Errno 2] No such file or directory: 'packages/google-cloud-access-context-manager/docs'
346+ os .makedirs (
347+ f"{ output } /{ path_to_library } /docs" , exist_ok = True
348+ )
333349 # TODO(https://github.com/googleapis/librarian/issues/2334):
334350 # if `.repo-metadata.json` for a library exists in
335351 # `.librarian/generator-input`, then we override the generated `.repo-metadata.json`
0 commit comments