GoogleCloudPlatform / GoogleCloudPlatform/php-tools

Failed to run command: Invalid choice 'builds'

Open
#113 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
23
Forks
21
PR merge metrics
No merged PRs in 30d

Description

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");
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.