bakeware icon indicating copy to clipboard operation
bakeware copied to clipboard

Only allow 1 app to run | Reuse the same .cache if appname is the same

Open vans163 opened this issue 4 years ago • 2 comments

If you push many releases of your application each time it will extract into a new folder under the .cache/bakeware path, this quickly adds up consuming disk space. Allowing only 1 version of the application to run might be out of scope (due to differences between OSes) but perhaps having an override to make the path be the appname instead of a hash would be good.

vans163 avatar Jul 08 '21 00:07 vans163

This is the biggest feature missing IMHO.

I'm not a big fan of reusing the same appname as the cache key since I think this might be a frequent enough use to cause confusion when versions fight each other.

My original thought was to keep the same behavior, but adding a gc step to clean up cache entries that don't have a corresponding sources. The code was getting close to doing this, but I didn't have time back then to implement.

I'm sure there are more options.

I don't actively maintain Bakeware. I thought that I'd be a user, but that never turned out to be the case. If you or someone else wants to maintain, I'll help brain dump to get this feature implemented, since after this one, I think that the others are minor.

fhunleth avatar Jul 08 '21 01:07 fhunleth

No time ATM but Im def using bake ware quite a bit. If you can braindump to this issue maybe I can tackle it or someone else.

vans163 avatar Jul 09 '21 02:07 vans163