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

Cannot enable cache #9

Open
hakjac opened this issue Nov 20, 2019 · 1 comment
Open

Cannot enable cache #9

hakjac opened this issue Nov 20, 2019 · 1 comment

Comments

@hakjac
Copy link

hakjac commented Nov 20, 2019

The following eslint configuration

eslint {
  executable = "./node_modules/eslint/bin/eslint.js"
  config = "./.eslintrc.json"
  inputs = ["src/**/*.ts"]
  cache = true
}

results in the following error message:

> Task :eslint FAILED
Caching disabled for task ':eslint' because:
  Build cache is disabled
Task ':eslint' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Starting process 'command './node_modules/eslint/bin/eslint.js''. Working directory: /home/hakjac/wsgit/hippo Command: ./node_modules/eslint/bin/eslint.js --config ./.eslintrc.json --cache true src/**/*.ts
Successfully started process 'command './node_modules/eslint/bin/eslint.js''

Oops! Something went wrong! :(

ESLint: 6.2.2.

No files matching the pattern "true" were found.
Please check for typing mistakes in the pattern.

I believe that the cache = true option should not result in --cache true but instead just a --cache

@msiemczyk
Copy link

msiemczyk commented Mar 31, 2023

That cache options refers to eslint cache. Gradle caching is not the same thing. My PR I've opened adds caching to the task, but you might also add additional inputs to gradle task if you have non standard config.

https://eslint.org/docs/latest/use/command-line-interface

PR: #10

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

No branches or pull requests

2 participants