Skip to content

Launch Windows gcloud batch wrappers through cmd.exe - #106

Merged
apstndb merged 1 commit into
mainfrom
fix/review-windows-gcloud
Sep 22, 2026
Merged

apstndb merged 1 commit into
mainfrom
fix/review-windows-gcloud

Conversation

@apstndb

@apstndb apstndb commented Sep 22, 2026

Copy link
Copy Markdown
Owner

On Windows, the Cloud SDK normally provides gcloud.cmd, which cannot be launched directly with CreateProcess. Route .cmd and .bat files through cmd.exe /d /s /c using an explicit command line; keep executable files on the direct launch path.

Add a fake batch-file regression in a directory containing spaces and a focused Windows CI job. The test verifies the login arguments without contacting Google or using credentials. Correct the prior comment claiming Windows automatically starts an interpreter.

Validation: Go 1.25.13 build, full emulator-backed tests and lint on macOS; independent quoting regression and Windows cross-compilation. Native Windows execution is covered by the new CI job and must pass before merge.

@apstndb
apstndb merged commit f3e0382 into main Sep 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant