Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bhaidar opened this issue Jun 11, 2021 · 0 comments
Open

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

bhaidar opened this issue Jun 11, 2021 · 0 comments

Comments

@bhaidar
Copy link

bhaidar commented Jun 11, 2021

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

No branches or pull requests

1 participant