Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Core: BaseEmulatorHelper fails to detect GCloud installation on Windows #383

Closed
@kevin-wise

Description

Environment details

  1. API: Core
  2. OS type and version: Windows 10
  3. Java version: 11
  4. google-cloud-core version(s): 1.94.1

Steps to reproduce

  1. Run an emulator on Windows. For example, using LocalDatastoreHelper
  2. The GCloud installation is not detected, so the emulator runs from a downloaded zip file

Code example

LocalDatastoreHelper datastoreHelper = LocalDatastoreHelper.create();
datastoreHelper.start();

Look at the processes started. It will not be the gcloud-based variant, even if gcloud is installed. You can tell it's the gcloud variant if a python process is started.

Stack trace

N/A

External references such as API reference guides

Any additional information below

In Windows the PATH environment variable is Path (not all uppercase) so this is why it is not detecting the installation.

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions