deno_bindgen
deno_bindgen copied to clipboard
don't cache development builds
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.
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?
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 I agree on disabling cache by default for all local builds (including --release). It doesn't really makes sense to cache it :-)