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

feat: relative cache support #106

Closed
wants to merge 3 commits into from
Closed

Conversation

CSchulz
Copy link

@CSchulz CSchulz commented Feb 14, 2023

Summary

To be able to share the created eslint cache between different systems f.e. local machine and CI, there is a need for a relative path stored in the cache.

Related Issues

eslint/eslint#16493

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 14, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@Rec0iL99
Copy link
Member

Hi @CSchulz, thanks for the proposal. Please sign the CLA first, so that the team can review your proposal.

Co-authored-by: Bryan Mishkin <698306+bmish@users.noreply.github.com>
@nzakas nzakas added Initial Commenting This RFC is in the initial feedback stage and removed triage labels Feb 16, 2023

## Detailed Design

The LintResultCache takes a file path as parameter to find or store a file cache entry.
Copy link
Member

Choose a reason for hiding this comment

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

We need more details in this section. It should be written in such a way that someone else would be able to implement it. Please reference filenames, classes, etc., and what would have to change so we can get an idea of the implementation complexity. We'd like your recommendation for the best way to implement your suggestion. As-is, there's not enough detail here to comment on.

Copy link
Author

Choose a reason for hiding this comment

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

@nzakas Can you help me out here? I am not so familar with the code to answer such questions in this detail level.

Copy link
Member

Choose a reason for hiding this comment

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

@CSchulz I completely understand. Part of the RFC process is to have you get familiar with the code to see how plausible it is to implement (otherwise, we will have to do that for every RFC and there's just not enough time for that).

For this change, start by looking in lib/eslint/flat-eslint.js.

@Rec0iL99
Copy link
Member

@CSchulz friendly reminder: there is a PR review for you to look into. Thanks.

@nzakas
Copy link
Member

nzakas commented May 4, 2023

No updates, so closing. Please feel free to resubmit if you'd like to continue with this proposal.

@cs6cs6
Copy link

cs6cs6 commented Oct 2, 2023

Is there a chance this might come back to life? My team is very interested in this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Initial Commenting This RFC is in the initial feedback stage
Projects
None yet
5 participants