-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Fix cache not invalidated when files are ignored or restored #18029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
commit: |
✅ Deploy Preview for prettier ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
I think the bug can be fixed by removing the initial value of - let shouldSetCache = !isDifferent;
+ let shouldSetCache = false;Will it work? Also, we need tests for this case. |
It seems don't work. If the file is ignored, it gets an early return. const isFileIgnored = isIgnored(filename);
if (
isFileIgnored &&
(context.argv.debugCheck ||
context.argv.write ||
context.argv.check ||
context.argv.listDifferent)
) {
continue;
} |
|
Hello @kovsu , sorry for the long delay. Do you know why we need For example: If I run This really doesn't make sense to me, since each command can even have a different cache location. |
Description
fix: #18016
After:
CleanShot.2025-10-10.at.16.51.22.mp4
Checklist
docs/directory).changelog_unreleased/*/XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.