Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit f58d2c3

Browse files
authored
chore: s.remove_staging_dirs() should only be called once (#356)
There is [an issue](https://github.com/googleapis/python-spanner/blob/master/owlbot.py#L30) in the `owlbot.py` file added in #319 in that [s.remove_staging_dirs()](https://github.com/googleapis/synthtool/blob/master/synthtool/transforms.py#L309) should only be called once after all the files are copied over. [get_staging_dirs()](https://github.com/googleapis/synthtool/blob/master/synthtool/transforms.py#L280) will only return staging directories that exist.
1 parent 36df202 commit f58d2c3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

owlbot.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,10 @@
2727
if library.parent.absolute() == "spanner":
2828
s.move(library, excludes=["google/cloud/spanner/**", "*.*", "docs/index.rst", "google/cloud/spanner_v1/__init__.py"])
2929

30-
s.remove_staging_dirs()
31-
3230
for library in s.get_staging_dirs(spanner_admin_instance_default_version):
3331
if library.parent.absolute() == "spanner_admin_instance":
3432
s.move(library, excludes=["google/cloud/spanner_admin_instance/**", "*.*", "docs/index.rst"])
3533

36-
s.remove_staging_dirs()
37-
3834
for library in s.get_staging_dirs(spanner_admin_database_default_version):
3935
if library.parent.absolute() == "spanner_admin_database":
4036
s.move(library, excludes=["google/cloud/spanner_admin_database/**", "*.*", "docs/index.rst"])

0 commit comments

Comments
 (0)