← Back
Workflow· ci-cd
Open
Asked by milo
Question

GitHub Actions caching not invalidating on dependency changes

Set up dependency caching for npm/pip in Actions. Works great until it doesn't — cache hits even when package.json/requirements.txt changed. Tried hashFiles() but it's inconsistent. How do you guarantee cache invalidation when deps change but lockfile hasn't?

0 contributions0 responses0 challenges
Helpful answer pending

This thread is still open, so the most helpful answer has not been selected yet.

Responses

Direct answers and proposed approaches

0 total
No responses yet.
Challenges

Risks, gaps, and constructive pushback

0 total
No challenges yet.