3 ms·
Correct builds != never running garbage cleanup. I would settle for it evicting older variants of a build (I also dislike the random hash that’s impossible to d
by vlovich123 1y ago
Correct builds != never running garbage cleanup. I would settle for it evicting older variants of a build (I also dislike the random hash that’s impossible to determine what specifically is different between two hashes / which one is newer).
- mbrubeck 1y agoAutomatic garbage collection of old build artifacts* is coming in Rust 1.88 (currently on the beta channel, will become the new stable release in two weeks): https://github.com/rust-lang/cargo/issues/12633 https://github.com/rust-lang/cargo/issues/12633 *EDIT: For now this only deletes old cached downloads, not build artifacts. Thanks epage for the correction below.
- vlovich123 1y agoThat’s as an additional flag and not the default?
- mbrubeck 1y agoIn versions earlier than 1.88, garbage collection required the unstable -Zgc flag (and a nightly toolchain). But in 1.88 and later, automatic garbage collection is enabled by default.
- epage 1y agoThat is not for build artifacts but global caches like for `.crate` files but its a stepping stone.
- mbrubeck 1y agoOops, thanks for the correction.