Cache pre-commit environments in lint.yml #787

Open
opened 2026-08-11 23:35:15 +00:00 by coilyco-ops · 0 comments
Owner

lint.yml has no cache, so every run clones every hook repository cold. That
is both the slowest path and the one exposed to the DinD MTU defect.

coilyco-flight-deck/agentic-os's ci.yml already does this and is the pattern
to copy: cache ~/.cache/pre-commit keyed on
hashFiles('.pre-commit-config.yaml') with a prefix restore-key.

Caching removes the network from the common path entirely, which beats making a
fragile network call more reliable.

`lint.yml` has no cache, so every run clones every hook repository cold. That is both the slowest path and the one exposed to the DinD MTU defect. `coilyco-flight-deck/agentic-os`'s `ci.yml` already does this and is the pattern to copy: cache `~/.cache/pre-commit` keyed on `hashFiles('.pre-commit-config.yaml')` with a prefix restore-key. Caching removes the network from the common path entirely, which beats making a fragile network call more reliable.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/infrastructure#787
No description provided.