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

styler writes file even if content does not change #531

Closed
lorenzwalthert opened this issue Jul 9, 2019 · 0 comments · Fixed by #532
Closed

styler writes file even if content does not change #531

lorenzwalthert opened this issue Jul 9, 2019 · 0 comments · Fixed by #532

Comments

@lorenzwalthert
Copy link
Collaborator

https://github.com/r-lib/styler/blob/master/R/io.R#L21. This causes a problem in an edge case with pre-commit-hooks as the styler styling hook would always README.Rmd but not its .md counterpart, and when trying to ensure .md was last modified after .Rmd, it fails. See pre-commit/pre-commit#1080.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant