Skip to content
oss-kit
GitHubInstall

Dependency caches are keyed on the lockfile

Rule
R-CI-04
Forge scope
GitHub and GitLab
Fixed by
oss-ci

A cache key that ignores the lockfile serves stale dependencies after an upgrade, so CI tests a dependency set nobody has. A key that changes on every run caches nothing and pays the restore cost anyway.

Observable check

every dependency cache in the CI configuration caches only reusable package-manager data, derives its primary key from the lockfile, and separates every operating system, architecture, runtime, or package-manager boundary that makes the cached contents incompatible. Any fallback key preserves those compatibility boundaries.

Read the whole standard