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

Fix mishandling of package lookup cache #225

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

NullVoxPopuli
Copy link
Collaborator

the cache ended up being too hard to get correct, and the perf saved wasn't worth it

…rd to get correct, and the perf saved wasn't worth it
@NullVoxPopuli NullVoxPopuli added the bug Something isn't working label Jun 11, 2024
@@ -122,7 +123,7 @@ const UNSUPPORTED_DIRECTORIES = new Set(['tests']);
* @param {string[]} [additionalRoots]
* @returns
*/
export function isRelevantFile(fileName, additionalRoots) {
export function isRelevantFile(fileName, { additionalRoots, cwd }) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cwd is now passed in, as it's too hard to mock globals or even modules

@NullVoxPopuli NullVoxPopuli merged commit e7225c3 into main Jun 11, 2024
18 checks passed
@NullVoxPopuli NullVoxPopuli deleted the fix-mishandling-of-package-lookup-cache branch June 11, 2024 17:49
@github-actions github-actions bot mentioned this pull request Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant