Package Details: google-cloud-sdk 300.0.0-1

Git Clone URL: https://aur.archlinux.org/google-cloud-sdk.git (read-only, click to copy)
Package Base: google-cloud-sdk
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/sdk/
Keywords: cloud gcloud gcp google sdk
Licenses: Apache
Submitter: barnybug
Maintainer: sudoforge (sudobot)
Last Packager: sudoforge
Votes: 142
Popularity: 3.73
First Submitted: 2014-06-03 08:10
Last Updated: 2020-07-08 22:51

Pinned Comments

sudoforge commented on 2018-09-10 15:11

PLEASE NOTE

This PKGBUILD is maintained on GitHub. Please use the following repository to submit patches, ask questions, and raise issues:

https://github.com/sudoforge/pkgbuilds

sudoforge commented on 2018-08-21 22:09

IMPORTANT NOTE!

Commit e01da1e449882ad8e4fe590b01cd09624b58143a removes the appengine components from this package. These components, along with all of the others, will be made available as independent packages in the future.

If you need any of the additional components for your day-to-day workflow, set "disable_updater": false in /opt/google-cloud-sdk/lib/googlecloudsdk/core/config.json and manage components using gcloud components <command>.

Be sure to install any dependencies for the additional components that you may need.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 ... Next › Last »

mindrunner commented on 2020-02-10 22:24

==> Extracting sources... -> Extracting google-cloud-sdk_279.0.0.orig.tar.gz with bsdtar ==> Starting prepare()... failed to apply patch: 0001-fix-console-io-syntax-warning.patch ==> ERROR: A failure occurred in prepare().

Since a couple of days now. Any news on this?

sudoforge commented on 2020-01-24 04:53

Hey folks,

277.0.0-2 has been released. This includes 7 new commits, bringing quite a few changes in. Namely:

  • The PKGBUILD now downloads and, well, packages, version 277.0.0
  • The SDK should now run with python 3 instead of python 2
  • The SyntaxWarning brought about by an upstream commit is patched locally
  • Building + packaging should now be a lot more quiet; interpreter-compiled bytecode are removed at packaging time (which will suppress a makepkg warning), and the various echo statements have been removed

As always, please let me know if you run into issues, or have a usability concern. While I do still monitor AUR comments, the proper place to report issues is at the Github repository.

sudoforge commented on 2020-01-16 17:15

Why is python in both depends a optdepends?

Whoops - good catch, thanks!

Also, CLOUDSDK_PYTHON still defaults to python2, so why exactly does this packages depends on python? Since Python 2 is dead, shouldn't this package change CLOUDSDK_PYTHON to python3 and move python2 from depends to optdepends?

While the core SDK supports Python3, some of the internal tools (dev_appserver and endpointscfg) that are bundled with the SDK do not yet support Python3. Therefore, both Python3 and Python2 are listed as dependencies. I'm still experimenting with setting CLOUDSDK_PYTHON to 3; I have not had time to determine whether or not this breaks the internal tools which depend on 2. I suppose that line could be removed from the script and we could rely on the internal resolution; but note that this would also default to Python2, as seen in the load order described in gcloud topic startup or online at: https://cloud.google.com/sdk/gcloud/reference/topic/startup

the-k commented on 2020-01-15 21:59

Why is python in both depends a optdepends? Also, CLOUDSDK_PYTHON still defaults to python2, so why exactly does this packages depends on python? Since Python 2 is dead, shouldn't this package change CLOUDSDK_PYTHON to python3 and move python2 from depends to optdepends?

the-k commented on 2019-12-23 11:48

Version 274.0.0 has been released and it features gcloud GA support for Python 3. See https://cloud.google.com/sdk/docs/quickstart-linux#before-you-begin.

sudoforge commented on 2019-12-13 06:56

I reverted the package to 272 after the build error was discovered.

The issue preventing me from building 273.0.0 is being tracked here:

https://issuetracker.google.com/issues/146012762

To summarize, there's a missing module: google_type_annotations. This is (supposedly) provided by the python package pytype, however, installing pytype doesn't seem to resolve this error, and I don't really have the time to dedicate digging into this further.

I could remove the step that is compiling the python source files to bytecode and bypass this error to build the package for 273.0.0, however, this would result in a SyntaxError at runtime whenever the particular file (active_peering_zones.py) is invoked, so I'm making the decision to halt upgrades until the issue referenced above is resolved, or until a future version of the SDK builds successfully.

piozylka commented on 2019-12-11 05:01

error in building script after today's update

Installing bash completion script Fixing python references for python2 and compiling *.pyc Compiling /home/pio/.cache/yay/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/api_lib/dns/active_peering_zones.py ... SyntaxError: future feature google_type_annotations is not defined (active_peering_zones.py, line 19)

ewaller commented on 2019-12-11 03:52

Not building after today's system update:

Installing bash completion script Fixing python references for python2 and compiling *.pyc Compiling /home/ewaller/devel/build/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/api_lib/dns/active_peering_zones.py ... SyntaxError: future feature google_type_annotations is not defined (active_peering_zones.py, line 19)

==> ERROR: A failure occurred in package().

sudoforge commented on 2019-11-09 16:40

@chibby0ne, this is very likely an upstream issue, but I've filed it and will be following up on Github:

https://github.com/sudoforge/pkgbuilds/issues/12

chibby0ne commented on 2019-11-08 14:02

I've read the pinned comment from @sudoforge, and the comments from @oskar and @esbdb, but these assume that kubectl is installed.

I've just installed this package which is now in version 270.0.0-3, and it looks like it doesn't bring kubectl anymore but it still shows up as installed in the output of gcloud components list:


Your current Cloud SDK version is: 270.0.0
The latest available version is: 270.0.0

+------------------------------------------------------------------------------------------------------------+
|                                                 Components                                                 |
+---------------+------------------------------------------------------+--------------------------+----------+
|     Status    |                         Name                         |            ID            |   Size   |
+---------------+------------------------------------------------------+--------------------------+----------+
| Not Installed | App Engine Go Extensions                             | app-engine-go            |  4.9 MiB |
| Not Installed | Cloud Bigtable Command Line Tool                     | cbt                      |  7.5 MiB |
| Not Installed | Cloud Bigtable Emulator                              | bigtable                 |  6.6 MiB |
| Not Installed | Cloud Datalab Command Line Tool                      | datalab                  |  < 1 MiB |
| Not Installed | Cloud Datastore Emulator                             | cloud-datastore-emulator | 18.4 MiB |
| Not Installed | Cloud Firestore Emulator                             | cloud-firestore-emulator | 40.0 MiB |
| Not Installed | Cloud Pub/Sub Emulator                               | pubsub-emulator          | 34.9 MiB |
| Not Installed | Cloud SQL Proxy                                      | cloud_sql_proxy          |  3.8 MiB |
| Not Installed | Emulator Reverse Proxy                               | emulator-reverse-proxy   | 14.5 MiB |
| Not Installed | Google Cloud Build Local Builder                     | cloud-build-local        |  6.0 MiB |
| Not Installed | Google Container Registry's Docker credential helper | docker-credential-gcr    |  1.8 MiB |
| Not Installed | Skaffold                                             | skaffold                 | 22.1 MiB |
| Not Installed | gcloud app Java Extensions                           | app-engine-java          | 85.9 MiB |
| Not Installed | gcloud app PHP Extensions                            | app-engine-php           |          |
| Not Installed | gcloud app Python Extensions                         | app-engine-python        |  6.0 MiB |
| Not Installed | gcloud app Python Extensions (Extra Libraries)       | app-engine-python-extras | 27.1 MiB |
| Installed     | BigQuery Command Line Tool                           | bq                       |  < 1 MiB |
| Installed     | Cloud SDK Core Libraries                             | core                     | 12.3 MiB |
| Installed     | Cloud Storage Command Line Tool                      | gsutil                   |  3.6 MiB |
| Installed     | gcloud Alpha Commands                                | alpha                    |  < 1 MiB |
| Installed     | gcloud Beta Commands                                 | beta                     |  < 1 MiB |
| Installed     | kubectl                                              | kubectl                  |  < 1 MiB |
+---------------+------------------------------------------------------+--------------------------+----------+
To install or remove components at your current SDK version [270.0.0], run:
  $ gcloud components install COMPONENT_ID
  $ gcloud components remove COMPONENT_ID

To update your SDK installation to the latest version [270.0.0], run:
  $ gcloud components update