Skip to content

Commit 3b55cc7

Browse files
authored
chore: Revert "chore: preserve .repo-metadata.json" (#14354)
Reverts #14326 PR #14326 introduced a regression on the infrastructure side with `librarian generate`
1 parent 5a236d0 commit 3b55cc7

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

.generator/cli.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,6 @@ def _clean_up_files_after_post_processing(output: str, library_id: str):
304304
Path(f"{output}/{path_to_library}/docs/CHANGELOG.md").unlink(missing_ok=True)
305305
Path(f"{output}/{path_to_library}/docs/README.rst").unlink(missing_ok=True)
306306

307-
# Remove `.repo-metadata.json` file to avoid ownership issues between
308-
# the container and librarian. Instead, preserve this file in the destination.
309-
Path(f"{output}/{path_to_library}/.repo-metadata.json").unlink(missing_ok=True)
310-
311307
# The glob loops are already safe, as they do nothing if no files match.
312308
for post_processing_file in glob.glob(
313309
f"{output}/{path_to_library}/scripts/client-post-processing/*.yaml"

.librarian/state.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ libraries:
1111
- packages/google-cloud-language
1212
preserve_regex:
1313
- .OwlBot.yaml
14-
- .repo-metadata.json
1514
- packages/google-cloud-language/CHANGELOG.md
1615
- docs/CHANGELOG.md
1716
- docs/README.rst

0 commit comments

Comments
 (0)