Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .generator/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ def _stage_gapic_library(tmp_dir: str, staging_dir: str) -> None:
"""
# For GAPIC, the generator output is flat in `tmp_dir` and includes all
# necessary files like setup.py, client library, etc.
shutil.copytree(tmp_dir, staging_dir)
shutil.copytree(tmp_dir, staging_dir, dirs_exist_ok=True)


def _generate_api(
Expand Down Expand Up @@ -775,7 +775,9 @@ def _generate_api(
_run_protoc_command(command, source)

# 3. Determine staging location
staging_child_directory = _get_staging_child_directory(api_path, is_proto_only_library)
staging_child_directory = _get_staging_child_directory(
api_path, is_proto_only_library
)
staging_dir = os.path.join(
output, "owl-bot-staging", library_id, staging_child_directory
)
Expand Down
4 changes: 3 additions & 1 deletion .generator/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1440,4 +1440,6 @@ def test_stage_gapic_library(mocker):
_stage_gapic_library(tmp_dir, staging_dir)

# Assertion: Check copytree was called exactly once with the correct arguments
mock_shutil_copytree.assert_called_once_with(tmp_dir, staging_dir)
mock_shutil_copytree.assert_called_once_with(
tmp_dir, staging_dir, dirs_exist_ok=True
)
21 changes: 21 additions & 0 deletions .librarian/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1756,3 +1756,24 @@ libraries:
remove_regex:
- packages/google-cloud-data-fusion
tag_format: '{id}-v{version}'
- id: google-cloud-workflows
version: 1.18.2
last_generated_commit: d300b151a973ce0425ae4ad07b3de957ca31bec6
apis:
- path: google/cloud/workflows/executions/v1
- path: google/cloud/workflows/executions/v1beta
- path: google/cloud/workflows/v1
- path: google/cloud/workflows/v1beta
source_roots:
- packages/google-cloud-workflows
preserve_regex:
- packages/google-cloud-workflows/CHANGELOG.md
- docs/CHANGELOG.md
- docs/README.rst
- samples/README.txt
- scripts/client-post-processing
- samples/snippets/README.rst
- tests/system
remove_regex:
- packages/google-cloud-workflows
tag_format: '{id}-v{version}'
1 change: 1 addition & 0 deletions scripts/configure_state_yaml/packages_to_onboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ packages_to_onboard: [
"google-cloud-vpc-access",
"google-cloud-webrisk",
"google-cloud-websecurityscanner",
"google-cloud-workflows",
"google-cloud-workstations",
"googleapis-common-protos",
]
Loading