dart-lang / native

Dart packages related to FFI and native assets bundling.
BSD 3-Clause "New" or "Revised" License
117 stars 40 forks source link

[native_assets_builder] Purge old directories #1353

Open dcharkes opened 2 months ago

dcharkes commented 2 months ago

The native assets builder creates directories in the form of .dart_tool/native_assets_builder/<some-hash-of-the-config>. These directories should be purged at some point:

https://github.com/dart-lang/native/blob/4c5fca965acecc0256489c9b0398518629cb9045/pkgs/native_assets_builder/lib/src/build_runner/build_runner.dart#L255

Possible purging strategy:

dcharkes commented 2 months ago

@jonasfj @sigurdm Does pub delete unused packages versions? Or do they just stay around forever (until a dart pub cache clean)?

sigurdm commented 2 months ago

Currently they stay in the cache forever.

We have a cool idea for how we could "garbage collect" the cache, but no immediate plans for realizing it.