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

New: Include node version in cache #12582

Merged
merged 3 commits into from Dec 6, 2019

Conversation

fa93hws
Copy link
Contributor

@fa93hws fa93hws commented Nov 20, 2019

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[x] Add something to the core
[ ] Other, please explain:

What changes did you make? (Give an overview)
Add node version to the key used in cache.

the result from the linting is possible to be different (some rules may fail) when the node is upgraded or downgraded.

Is there anything you'd like reviewers to focus on?
N/A

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Nov 20, 2019
@fa93hws fa93hws changed the title include node version in cache New: Include node version in cache Nov 20, 2019
@fa93hws fa93hws force-pushed the include-node-version-in-cache branch from a0ad07a to 640daec Compare November 20, 2019 05:38
Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

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

With the widespread use of tools like nvm, this seems like a good idea to me. Are there any tests we can include to cover this change?

@kaicataldo kaicataldo added bug ESLint is working incorrectly core Relates to ESLint's core APIs and features enhancement This change enhances an existing feature of ESLint evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion and removed triage An ESLint team member will look at this issue soon labels Nov 21, 2019
@fa93hws
Copy link
Contributor Author

fa93hws commented Nov 21, 2019

With the widespread use of tools like nvm, this seems like a good idea to me. Are there any tests we can include to cover this change?

I can add it together with the eslint version.

@kaicataldo kaicataldo added tsc agenda This issue will be discussed by ESLint's TSC at the next meeting and removed bug ESLint is working incorrectly labels Nov 21, 2019
@kaicataldo
Copy link
Member

Even though this is a core change, it’s such a small one that I don’t think it should have to go through the RFC process. That being said, I think we should bring this to the TSC.

@kaicataldo
Copy link
Member

TSC Summary

This PR proposes to include the Node version when hashing the cache key, ensuring that the cache is busted when consecutive linting runs are executed with different Node versions.

TSC Question

Should we accept this?

@kaicataldo
Copy link
Member

This proposal was accepted at today's TSC meeting.

@kaicataldo kaicataldo added accepted There is consensus among the team that this change meets the criteria for inclusion and removed evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion tsc agenda This issue will be discussed by ESLint's TSC at the next meeting labels Dec 6, 2019
Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for contributing!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion core Relates to ESLint's core APIs and features enhancement This change enhances an existing feature of ESLint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants