Slow installation of mono-repo

xvries
Wed, 31 Jul 2024 08:43:58 +0000
Package Management

I am maintaining a privately registered git repo which contains multiple packages. The repo is starting to become rather big ~300 MB (I know I should do something about that). Whenever a user installs a package the whole repo needs to be cloned. Even if the repo has already been cloned, the package manager will still make a new clone. This results in multiple package installs taking a long time to download since its N x 300MB which needs to be downloaded.

I am looking for some advice on how to manage this. The few things I came up with myself:

Reduce git repo size (difficult/dangerous, not a permanent solution)

Move packages to single git repos (this may not be desired for us)

Find a way to reuse the cloned git repo to install multiple packages?

Is there something else I can do to not make installation of our packages that heavy? I notice that installation from General registry packages is often very fast, so I assume that they use some smarter tricks?

6 posts - 4 participants