facebook / buck2

Build system, successor to Buck
https://buck2.build/
Apache License 2.0
3.33k stars 194 forks source link

How to use "buck2 clean" or other commands to delete only the generated files (cache) without killing the daemon? #608

Open yaoddao opened 2 months ago

yaoddao commented 2 months ago

Ask a question above,Thanks!

krallin commented 1 month ago

This is not a feature that exists in Buck2.

There is buck2 clean --stale that can clean files that were produced by a previous daemon (assuming you’re using deferred materialization), but that still won’t clear files the current daemon cares about.

If you think about it though, once you’ve cleared all the outputs there’s not too much state left in the daemon (only loading and analysis), so what you’re asking for might be a lot less useful than you think.

On Tue, 19 Mar 2024 at 05:47, yaoddao @.***> wrote:

Ask a question above,Thanks!

— Reply to this email directly, view it on GitHub https://github.com/facebook/buck2/issues/608, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANIHVS5BGTJQF3UYTVHADLYY67PLAVCNFSM6AAAAABE42GHXGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4TIMBRGIYTONI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

JakobDegen commented 1 month ago

Yeah, agreed with Thomas. I think it would be good to know what the state that you are expecting to keep around is, we may be able to provide a more helpful answer then