phenomnomnominal / betterer

betterer makes it easier to make incremental improvements to your codebase
MIT License
579 stars 38 forks source link

Caching prevents re-checking a file that has new changes #1172

Open tarngerine opened 1 year ago

tarngerine commented 1 year ago

Describe the bug I'm testing betterer for our codebase (a single eslint rule, which you can see here #1171 ), and I'm trying the --cache option because adding 10+ seconds to our precommit time isn't acceptable. However, I'm finding that cache is overly aggressive and doesn't recheck a file that is has newly staged changes

To Reproduce

Expected behavior

It should re-run betterer on this file that has newly staged changes. I'm not sure what those hashes are in .betterer.cache but i'm not seeing those change.

Versions (please complete the following information):