From 9bddc73f29af3921703d6e00de606dc95386563a Mon Sep 17 00:00:00 2001 From: jlightfoot Date: Sun, 26 Oct 2025 21:48:14 -0400 Subject: [PATCH 1/2] Update cli_deploy.py to solve cloud run deploy error in Windows Error: Deploy failed: [WinError 2] The system cannot find the file specified --- src/google/adk/cli/cli_deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/adk/cli/cli_deploy.py b/src/google/adk/cli/cli_deploy.py index d26b3c9660..4e29985ef7 100644 --- a/src/google/adk/cli/cli_deploy.py +++ b/src/google/adk/cli/cli_deploy.py @@ -333,7 +333,7 @@ def to_cloud_run( # Add any remaining extra passthrough args gcloud_cmd.extend(extra_args_without_labels) - subprocess.run(gcloud_cmd, check=True) + subprocess.run(gcloud_cmd, check=True, shell=True) finally: click.echo(f'Cleaning up the temp folder: {temp_folder}') shutil.rmtree(temp_folder) From d7e236f6b21d7d40e21f496d3ced22fb69b64e15 Mon Sep 17 00:00:00 2001 From: jlightfoot Date: Mon, 27 Oct 2025 16:02:06 -0400 Subject: [PATCH 2/2] Update src/google/adk/cli/cli_deploy.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/google/adk/cli/cli_deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/adk/cli/cli_deploy.py b/src/google/adk/cli/cli_deploy.py index 4e29985ef7..1e6e61d3ae 100644 --- a/src/google/adk/cli/cli_deploy.py +++ b/src/google/adk/cli/cli_deploy.py @@ -333,7 +333,7 @@ def to_cloud_run( # Add any remaining extra passthrough args gcloud_cmd.extend(extra_args_without_labels) - subprocess.run(gcloud_cmd, check=True, shell=True) + subprocess.run(gcloud_cmd, check=True, shell=os.name == 'nt') finally: click.echo(f'Cleaning up the temp folder: {temp_folder}') shutil.rmtree(temp_folder)