deno_bindgen icon indicating copy to clipboard operation
deno_bindgen copied to clipboard

don't cache development builds

Open littledivy opened this issue 3 years ago • 3 comments

I have to rm -rf ~/Library/Caches/deno/plug/ after every rebuild to keep the cache up to date. We should just disable caching local plugins.

littledivy avatar Feb 17 '22 10:02 littledivy

I stumbled into this problem today while trying to figure out why my rust changes weren't showing up. The thing is, for the crates I'm building, I always run in release mode even during development because the crates I'm working with are painfully slow without optimizations.

In addition to not caching development builds, what would you think of having an option to disable caching even for release builds?

mwcz avatar Feb 17 '22 19:02 mwcz

Also, it looks like caching is already set to CachePolicy.NONE for development builds. :thinking:

https://github.com/denoland/deno_bindgen/blob/544de7d785040db499762fa81ab1b276832e7c95/codegen.ts#L149

mwcz avatar Feb 17 '22 19:02 mwcz

@mwcz I agree on disabling cache by default for all local builds (including --release). It doesn't really makes sense to cache it :-)

littledivy avatar Feb 18 '22 03:02 littledivy