Memory Limit Exceeded During Git Push Operation

Issue Description:

I encountered the following error while attempting to push my project to GitHub:

File .build/repositories/RxSwift-25ac69bd/objects/pack/pack-102933ac54566dc7cc2973380380b8482ec030de.pack is 101.36 MB; this exceeds GitHub's file size limit of 100.00 MB.

Even after trying to use Git LFS, I am unable to push my project successfully. If I attempt to push without including this and other submodules, the project fails to pass the Continuous Integration (CI) checks.

I am looking for assistance in resolving this issue so that I can successfully push my project while adhering to GitHub’s file size limits.

Hi @Alexandr-Ivantsov :wave:

Is there a reason why you are including the resolved dependencies (i.e. the .build directory) in the repository. If it’s done accidentally, our recommendation is that you add .build to your .gitignore file.

Then if you are using Mise for managing the installation of Tuist, you can do something like this:

[tools]
tuist = "4.44.2"

[hooks]
postinstall = "tuist install"

Such that all the dependencies are resolved in the environment as part of running mise install.

1 Like