question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Repo size/binary files

See original GitHub issue

I 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.

#33168

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
cortinicocommented, Mar 1, 2022

Thanks for raising this issue. @ShikaSD looked into making sure we don’t bundle them inside the NPM package at least.

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).

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.

0reactions
friederbluemlecommented, Mar 3, 2022

Thanks @cortinico and @ShikaSD 👏 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found