Package Details: google-cloud-cli 517.0.0-1

Git Clone URL: https://aur.archlinux.org/google-cloud-cli.git (read-only, click to copy)
Package Base: google-cloud-cli
Description: A set of command-line tools for the Google Cloud Platform. Includes gcloud (with beta and alpha commands), gsutil, and bq.
Upstream URL: https://cloud.google.com/cli/
Keywords: cloud gcloud gcp google sdk
Licenses: Apache-2.0
Conflicts: google-cloud-sdk
Provides: google-cloud-sdk
Replaces: google-cloud-sdk
Submitter: PolarianDev
Maintainer: jvybihal
Last Packager: jvybihal
Votes: 190
Popularity: 0.68
First Submitted: 2023-03-08 09:33 (UTC)
Last Updated: 2025-04-02 08:09 (UTC)

Dependencies (2)

Required by (14)

Sources (4)

Pinned Comments

Latest Comments

1 2 3 4 5 6 .. 31 Next › Last »

jvybihal commented on 2025-03-27 11:11 (UTC) (edited on 2025-03-27 11:11 (UTC) by jvybihal)

In the last commit I have addressed last commments here. Hopefuly without breaking anyones workflow. You should not need to adjust PATH anymore, and bundled python is used by default now (adjustable).

tetamusha commented on 2025-03-24 22:04 (UTC)

For those struggling with the error Error: gsutil requires Python version 3.8-3.12, but a different version is installed. even though you are using a compatible Python version, one solution is to edit or comment out the declaration of CLOUDSDK_PYTHON on /etc/profile.d/google-cloud-cli.sh to use whatever Python executable you point to or is active on your environment.

sirianni commented on 2025-03-20 15:05 (UTC) (edited on 2025-03-20 15:06 (UTC) by sirianni)

Why is this package explicitly setting these profile variables?

export CLOUDSDK_PYTHON=/usr/bin/python
export CLOUDSDK_PYTHON_ARGS='-S -W ignore'

This breaks usage of tools like gsutil that require an older python. Since the gcloud CLI packages its own python, we should just let the tools use that instead of forcing the system version.

jvybihal commented on 2025-03-19 11:28 (UTC)

@Segaja i don't know the reason, if there is any. I adopted the package like this and never bothered thinking about it. I get your point and I agree, seems logical to add symlink to bin. Debian package does that. When I get a chance (more time) i will inspect the PKGBUILD for improvements. Patches are always welcome.

Segaja commented on 2025-03-18 07:55 (UTC)

Is there a specific reason why this package is not putting the actual binary into /bin which is in the PATH?

Right now I need to have a line like this in my .zshrc to have easy access to the binary:

export PATH="/opt/google-cloud-cli/bin:${PATH}"

ewirch commented on 2024-10-22 14:32 (UTC)

Python 3.12 incompatibility tracking issue: https://issuetracker.google.com/issues/373925130

ewirch commented on 2024-10-22 14:23 (UTC)

Recent google-cloud-sdk is not compatible with python 3.12:

Error: gsutil requires Python version 2.7 or 3.5-3.11, but a different version is installed. You are currently running Python 3.12

Need to depend on an older version.

Jaga commented on 2024-07-12 09:40 (UTC)

Installed version 483.0.0-1 of google-cloud-cli, had to perform the following configuration in order for the commands to exist:

echo "source /etc/profile.d/google-cloud-cli.sh" >> ~/.bashrc (updated PATH)

jvybihal commented on 2024-07-02 11:47 (UTC) (edited on 2024-07-02 11:48 (UTC) by jvybihal)

Please be aware there is an issue with google-cloud-cli and python-protobuf>=27.0 which renders gcloud unusable. There is an issue already open.

The error is "AttributeError: module 'google._upb._message' has no attribute 'MessageMapContainer'"

jvybihal commented on 2024-05-14 10:25 (UTC)

Seems like compatibility issue with python 3.12. I have hidden the warning with the profile file. Or you can try to run pyupgrade over the project. I have included little template in PKGBUILD, but it's not enabled by default, and did not work for me on the first try. Patches welcome.