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

Allow ignoring cache or using a different cache key for a given formatter #277

Open
akshaymankar opened this issue Mar 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@akshaymankar
Copy link
Contributor

Is your feature request related to a problem? Please describe.

When using cabal-fmt, the file can be updated if there are new haskell modules in the project. The cache doesn't seem to understand this.

Describe the solution you'd like

Either allow an option like ignoreCache: <bool> in the formatter config or allow specifying a command to run to get the cache key.

Describe alternatives you've considered

Just running treefmt --no-cache -f <formatter> works, but it is too verbose and needs treefmt to be run twice: once for formatters for which cache works, second time for rest of them.

@akshaymankar akshaymankar added the enhancement New feature or request label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant