GoogleCloudPlatform / GoogleCloudPlatform/gsutil

google-cloud-cli has a huge install size

Open
#1,732 64 comments 143 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

It's something like 1 gigabyte of install size when I follow the instructions on https://cloud.google.com/storage/docs/gsutil_install
(and then I'm not even counting the dependencies, I'm only looking at `/usr/lib/google-cloud-sdk`)

This seems very excessive for what is supposed to be just a command line interface to a cloud platform.

Please consider being a bit more size-aware when packaging these things. For example, I see a huge unstripped binary in `/usr/lib/google-cloud-sdk/bin/anthoscli` (174 MB) and a big uncompressed JSON file in `/usr/lib/google-cloud-sdk/data/cli/gcloud.json` (83 MB). Also it looks like a bunch of test code is being shipped as part of the package:

```
$ ls -R /usr/lib/google-cloud-sdk |grep test |wc -l
1609
```
which makes me think this is not actually a packaged tool but more like a dump of a development repository.

It feels like there is a lot of low hanging fruit to reduce the install size of this tool.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the install from the linked gsutil instructions and measuring /usr/lib/google-cloud-sdk. Inspect bin/anthoscli, data/cli/gcloud.json, and the shipped test files identified in the report. Done means agreeing on packaging changes that materially reduce the installed size without removing required CLI functionality.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud, python
Domain
cli, cloud, release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.