Skip to content
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

Sort files path before generating unique cache key #432

Merged
merged 1 commit into from Feb 26, 2020

Conversation

pvdlg
Copy link
Contributor

@pvdlg pvdlg commented Feb 25, 2020

Follow up to #431

On large project the order of files passed to the getTsConfigCachePath can vary from one run to the other, which result in a different tsconfig temporary file name, invalidating the ESLint cache.

This PR applies a sort to the files list to maintain a consistent file name.

Sorry about all the different PRs to finally get that functionality right...

@sindresorhus sindresorhus merged commit 1807537 into master Feb 26, 2020
@sindresorhus sindresorhus deleted the fix-ts-cache branch February 26, 2020 07:49
@sindresorhus
Copy link
Member

Sorry about all the different PRs to finally get that functionality right...

Don't worry. It's a difficult feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants