Skip to content

Conversation

@coolreader18
Copy link
Member

cargo-sweep

The before_cache lifetime script now runs this:

if command -v cargo; then
  ! command -v cargo-sweep && cargo install cargo-sweep
  cargo sweep -i
  cargo sweep -t 15
fi

It first checks that there is rust/cargo installed, as our flake8 script doesn't install the rust toolchain. It then installs cargo-sweep if it isn't already, and removes artifacts from old versions of the rust toolchain and those that are more than 15 days old (by mtime). I'm not sure if that's a good measurement, it might be better if it were longer or shorter.

@windelbouwman windelbouwman merged commit c786109 into master Jul 28, 2019
@coolreader18 coolreader18 deleted the coolreader18/cargo-sweep branch August 2, 2019 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants