-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fails to install components if gcloud came from apt #69
Comments
Hello @mgabeler-lee-6rs , thank you for reporting this. |
|
It is not too hard but it would make this orb support apt and maybe other package managers in the future. This orb only supports installation of components for Thank you again for opening this issue and sorry that it took 18 months to answer. We are pushing forward to evolve orbs for our users. |
Orb version
3.0.1
What happened
We embed steps from this orb in an orb of our own, and so sometimes we end up calling it in a workflow that is running from an image that has at least the base gcloud already installed, such as
gcr.io/google.com/cloudsdktool/cloud-sdk
, since our orb steps that needgcloud
sometimes run in containers without gcloud pre-installed, and sometimes in ones that have it installed.This orb detects that
gcloud
is already installed, but then when trying to install the requested components, it always usesgcloud components install ...
, which is not allowed whengcloud
was installed viaapt
(or some other package manager). This causes the install step to fail with an error like this:Expected behavior
It should install the requested components via
apt-get
when necessary.Additional Notes
Google is in the process of trying to transition the name of the "sdk" package to "cli", and the names of the component packages needs to match the main gcloud package, so e.g. if
google-cloud-cli
is installed, component packages need to be installed asgoogle-cloud-cli-<component>
, trying to installgoogle-cloud-sdk-<component>
will fail, and vice versa. It doesn't help matters that the error message fromgcloud components install
always tells you to use thesdk
variant even when that's wrong.The text was updated successfully, but these errors were encountered: