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
Change Request: Eslintcache relative #16493
Comments
Hi @brenelz, thanks for the issue! I think this is generally doable. We'd need to discuss details, like whether this needs a new option and what should be the base path (directory to which the file paths would be relative; would it be the current working directory, or location of the cache file, or something else). This is a non-trivial change in the core, so I think it should go through the RFC process, but let's hear more opinions from the team first. |
If its a non-trivial change its probably not worth it. Seems like no one has really asked for it besides me. We were just trying to use the cache in our ci which I think we are unable to do currently. |
Another option very specific to my use case would be if we could not include the path in hashOfConfig if that makes sense |
Yeah, we’d need an RFC for this as it has the potential to break current cache file usage. |
Who can initiate this rfc request? We are also struggling with caching. Why not using a hybrid scenario for the paths? Cutting the absolute path to a relative path and always store the relative path for the future. |
Anyone can initiate an RFC. Some people check in their cache file, so any change to the cache format is a breaking change. We can't know for sure where people are storing cache files or how else they might be used. |
I can't believe anyone is using absolute paths if people want to check in their cache files. |
@CSchulz you can feel free to propose whatever you want. As already stated, we would just need an RFC to consider it. |
I second this feature! I had opened an issue for this as well #16741. |
+1. |
+1 on our big monorepo (500 packages) we also want to share the |
Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update. |
Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update. |
This issue was auto-closed due to inactivity. While we wish we could keep responding to every issue, we unfortunately don't have the bandwidth and need to focus on high-value issues. |
Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update. |
I would like to see this proceed. |
Personally I don't have a specific need for this anymore, but I think it would still be nice |
I do. I'm prototyping it, and if it works I'll try to submit this back.
It would likely be best to look at the config option cachefolderstorage here, and see if filePath should be stored as a relative or a full path. Some unit tests will definitely need to be added to the flat-eslint tests, and the option-parser tests. |
Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update. |
@cs6cs6 I am out of time at the moment, but I would suggest to take over my rfc request or we work together? |
This isn't stale, we have an RFC open: |
Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update. |
We have an RFC that hasn't been updated in a bit. Will ping the author. |
Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update. |
We are waiting on the RFC to be picked up. |
Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update. |
Assigned it to the RFC author, to avoid stale-bot messages. |
ESLint version
v8.26.0
What problem do you want to solve?
I am currently trying to use the .eslintcache file in our jenkins ci.
Is there anyway the cache can use relative file paths? In our instance each branch is in a seperate dir but I want to reuse the cache.
What do you think is the correct solution?
In order to move the .eslintcache around it would be great if the cache filePaths were relative
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: