Skip to content

Commit 249a63d

Browse files
authored
chore: preserve files for librarian generation (#14205)
This PR adds the following patterns to `preserve_regex` to reduce the diff during client library generation using [librarian ](https://github.com/googleapis/librarian). - gapic_version.py - samples/generated_samples/snippet_metadata_ - scripts/client-post-processing If we don't do this, we will have ~500 changed files when we migrate the client library generation from [owlbot](https://github.com/googleapis/repo-automation-bots/tree/main/packages/owl-bot) to [librarian ](https://github.com/googleapis/librarian), which would be too noisy.
1 parent 32f77ca commit 249a63d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.librarian/state.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ libraries:
1616
- docs/README.rst
1717
- samples/README.txt
1818
- tar.gz
19+
- gapic_version.py
20+
- samples/generated_samples/snippet_metadata_
21+
- scripts/client-post-processing
1922
remove_regex:
2023
- ^packages/google-cloud-language

scripts/configure_state_yaml/configure_state_yaml.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def configure_state_yaml() -> None:
7373
"docs/README.rst",
7474
"samples/README.txt",
7575
"tar.gz",
76+
"gapic_version.py",
77+
"samples/generated_samples/snippet_metadata_",
78+
"scripts/client-post-processing",
7679
],
7780
"remove_regex": [f"^packages/{package_path.name}"],
7881
}

0 commit comments

Comments
 (0)