casey / casey/just

Cached recipe tracking issue

Open
#3,439 11 comments 12 reactions 0 assignees View on GitHub
coveted
Dominant language
Rust
Stars
35.8k
Forks
846
Avg merge
27m
Merged PRs (30d)
3

Description

`just` now has a `[cache]` attribute added in #3437 and released in [1.54.0](https://github.com/casey/just/releases/tag/1.54.0) which skip recipe invocations if an entry matching the invocation is found in an on-disk cache.

This is a complex feature, so try it out and let me know what you think!

Possible future additions:
- Check input file mtime instead of hashing
- Invalidate cache if an executable changes
- Remove automatically added cache keys
- Allow input files to be directories
- Cache shell recipes
- Allow referencing `extra`, `inputs`, and `outputs` in recipe

Contributor guide

Open the contributing guide

Research direction

Start by trying the `[cache]` attribute released in just 1.54.0 and exercise recipe invocations against an on-disk cache. Review the listed future additions and record concrete behavior gaps; done is a clearly scoped follow-up with reproducible observations.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.