-
Notifications
You must be signed in to change notification settings - Fork 316
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
package takes a lot of disc space #1735
Comments
PR #1730 seems to be related |
Also check out doing a limited install, which allows you to declare only the services you want in your |
The solution to that would be to offer separate packages for the API client of each service. Most projects probably use only a few services. |
google is adamantly proud of their mono repo consisting of over a billion lines of code |
It doesn't really makes a sense to have one huge package monster containing everything. Can't this be split into different packages with dependencies? I mean I only need google analytics, but I end up with ~250 different packages I don't really need, which only make autoload really big, and take space while they'll never be used. |
@stof Unfortunately the limitation of composer is that we'd need to maintain 250 separate github repos, which is not feasible for a number of reasons. There are potentially other ways we could host 250 packages, and we should definitely explore this. But the truth is, these libraries are supported essentially out of altruism at this point as we ship much better individual packages at https://cloud.google.com/php/docs/reference. I understand that not all of our client libraries are covered by the new packages, and if there's a feasible solution (for instance, if packagist supported multiple packages in a single repo), we'd be happy to support it as well. |
The blocker for packagist to support multiple packages in a single repo is that packagist.org does not manage downloadable archives at all. It only links to the github archive endpoint. And github does not have endpoints download an archive of only a sub-path. |
Apparently, the anyway, maybe the readme of this repo should link to the cloud packages, suggesting to use them when available. |
Yes and it's a lot of overhead and isn't scalable for 250+ additional packages of a turned down library maintained by a team of essentially me. I've updated the READMEs: #2279 |
@marabucz I suggest using the Google analytics data package |
If you are still having issues, please be sure to include as much information as possible:
Environment details
Steps to reproduce
composer require google/apiclient
-> see composer installing a ~100MB dependency folder
having to copy 100 MB of files arround in a continous deployment setup is a real problem.
is there anything which can be done to reduce the filesystem footprint of this package?
here you can see the subfolders within
src
which contribute the most to filesystem consumption:Code example
# example
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: