Skip to content

Failed to run command: Invalid choice 'builds' #113

@bhaidar

Description

@bhaidar

Hello
I am trying to run the command locally on my computer as follows:
./vendor/bin/flex_exec -- run php -v

I get the following error:

ERROR: (gcloud.container) Invalid choice: 'builds'.
Maybe you meant:
  gcloud builds submit
  gcloud config get-value
  gcloud config list
  gcloud config set
  gcloud config unset

To search the help text of gcloud commands, run:
  gcloud help -- SEARCH_TERMS

In ContainerExec.php line 113:
  Failed to run the command  

This is the code snippet affected.

list($result, $cmdOutput) = $this->gcloud->exec(
            [
                'container',
                'builds',
                'submit',
                "--config=$this->workdir/cloudbuild.yaml",
                "$this->workdir"
            ]
        );
        file_put_contents(
            "$this->workdir/cloudbuild.log",
            implode(PHP_EOL, $cmdOutput)
        );
        if ($result !== 0) {
            throw new \RuntimeException("Failed to run the command");
        }

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