mozilla / mozilla/sccache

Feature request: implement --evict-older-than option

Open
#2,725 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
7.7k
Forks
748
Avg merge
4d 7h
Merged PRs (30d)
21

Description

Hello !

I'd love a --evict-older-than option in sccache (like in ccache), which would delete all cache artifacts not used in the last X amount of time. This would allow me to manage cache size dynamically, rather than relying on a fixed cache size limit

I'd love to implement this myself and submit a PR if you accept the idea.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating sccache's command-line option handling and cache eviction implementation, then compare the requested behavior with ccache; done means the option removes cache artifacts unused for the specified duration and is covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.