Repo size/binary files
See original GitHub issueI just fetched from facebook/react-native and was pretty shocked to see that it downloaded another ~100 MB of data.
A quick look at --stat
revealed that 8 new binary jar files were added to the repo:
$ du -sh ReactAndroid/src/main/third-party/kotlin/1.6.10/
102M ReactAndroid/src/main/third-party/kotlin/1.6.10/
Is there a way these files can be fetched on demand from a central repository like other Java/Maven dependencies instead?
As you probably know, the increase in repo size is permanent (even if the files are deleted/updated again later), except if the history is rewritten (which of course is not an option).
facebook/react-native is already up to >800 MB. That’s just the repo size alone, without a checked out working tree.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Reduce Binary File Storage Repo Size? - How to Use GitLab
Hi, I have a GitLab Repo where I am storing some binary files. Over time, with multiple commits for each binary file, the...
Read more >About large files on GitHub - GitHub AE Docs
Repository size limits. We recommend repositories remain small, ideally less than 1 GB, and less than 5 GB is strongly recommended. The maximum...
Read more >Why is Git considered inefficient in handling binary files?
The binary files never exceed the 25MB, most of them are lower than 10MB, and are rarely changed (2 or 3 times a...
Read more >How Git LFS Works: Overview of Git Large File Storage
Git LFS is a Git extension used to manage large files and binary files in a separate Git repository. Most projects today have...
Read more >Remove binaries and big files from Git repo - NetDevOps
You slice and dice your files in a Git repo like a pro and accidentally commit a binary file. ... But the repo...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for raising this issue. @ShikaSD looked into making sure we don’t bundle them inside the NPM package at least.
As you mentioned, now the “damage” is done. Sorry for that. I think we should look into findign a different approach to make sure we don’t add 100+ whenever we bump a minor version of Kotlin.
Thanks @cortinico and @ShikaSD 👏 👍