Library folder keeps getting bigger with each build

I’m working on a project where we have a Jenkins pipeline constantly making builds as they triggered by the devs, but for some reason this is causing the library folder on that workspace to keep getting bigger and bigger, even reaching over 100GB in size. This is making our build time go from 10 minutes to 50 minutes!!
Our Assets folder has 6.38GB, so to get to over 100GB on the library folder seems unthinkable.
I’ve read some other posts saying that deleting the library folder and letting unity regenerate is a solution, but it is not a viable solution for us, given that the project import alone can take up to 5 hours.
Any ideas on how to fix this?

There was definitely a bug and I think I heard they fixed it. Forget what was growing… shader cache? Lightmap cache? I forget. Either way, be sure you’re using source control and just blow away your Library folder once in a while and rebuild it all, or else perhaps upgrade to the next in the LTS chain you’re on.

1 Like