Skip to content

Commit cf17868

Browse files
authored
chore(librarian): resolve issue where gapic_version.py cannot be written (googleapis#14388)
Fixes the following error when running `librarian release init` ``` Release init failed: [Errno 2] No such file or directory: '/output/packages/google-cloud-language/google/cloud/language/gapic_version.py' ```
1 parent 4821112 commit cf17868

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.generator/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def _write_text_file(path: str, updated_content: str):
7575
updated_content(str): The contents to write to the file.
7676
"""
7777

78+
os.makedirs(Path(path).parent, exist_ok=True)
7879
with open(path, "w") as f:
7980
f.write(updated_content)
8081

0 commit comments

Comments
 (0)