CircleCI-Public / gcp-cli-orb

Install and configure the Google Cloud CLI (gcloud)
https://circleci.com/orbs/registry/orb/circleci/gcp-cli
MIT License
9 stars 32 forks source link

Failed to install gcloud on latest ubuntu machine executor #82

Open yz89122 opened 5 months ago

yz89122 commented 5 months ago

Orb version

circleci/gcp-cli@3.1.0

machine image: ubuntu-2204:2024.03.1(from ubuntu-2204:edge) and ubuntu-2004:2024.03.1(from: ubuntu-2004:edge)

What happened

Installation failed.

error message:

The version installed (470.0.0) matches the version requested (470.0.0).
Skipping installation.

ERROR: (gcloud.components.install) You cannot perform this action because you do not have permission to modify the Google Cloud SDK installation directory [/opt/google/google-cloud-sdk].

Re-run the command with sudo: sudo /opt/google/google-cloud-sdk/bin/gcloud ...

Exited with code exit status 1

We were trying to install a gcloud plugin (gcloud component install ...).

Currently we use this orb with workaround sudo chown circleci:circleci -R /opt/google.

Expected behavior

Installation succeeded.

michaelrode commented 2 months ago

I am having the same issue