Skip to content

Windows: Cloud SDK default install path contains spaces and breaks skaffold execution #1192

@RegainLife

Description

@RegainLife

Environment

  • OS: Windows 10 / 11
  • VS Code + Cloud Code for Cloud Run
  • Google Cloud SDK installed via official Windows installer
  • Default install path contains spaces
  • skaffold invoked by Cloud Code

Problem

When Cloud SDK is installed under a path containing spaces,
Cloud Code executes skaffold via cmd.exe without proper quoting.
As a result, the command fails with:

'C:\Users...\Google\Cloud' is not recognized as an internal or external command

Steps to Reproduce

  1. Install Google Cloud SDK using the official Windows installer (default path)
  2. Open a Cloud Run project in VS Code with Cloud Code
  3. Run build / deploy / debug (which invokes skaffold)
  4. Command fails due to unquoted path with spaces

Expected Behavior

  • The Windows installer should avoid spaces in the default install path, or
  • Cloud Code / skaffold invocation should properly quote paths with spaces

Workaround

Reinstall Google Cloud SDK into a path without spaces (e.g. C:\gcloud).
After reinstalling without spaces, everything works correctly.

Notes

This is a common Windows constraint for CLI tools.
The current default installer path makes Cloud Code unusable out-of-the-box on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions