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

just fmt always updates the timestamp of the file #2478

Closed
jwillikers opened this issue Nov 23, 2024 · 1 comment
Closed

just fmt always updates the timestamp of the file #2478

jwillikers opened this issue Nov 23, 2024 · 1 comment

Comments

@jwillikers
Copy link

jwillikers commented Nov 23, 2024

When formatting justfiles with just --unstable --fmt, the timestamp of the justfile is always modified whether or not the file was changed.
This is problematic for detecting whether a file has been reformatted or not, such as when using treefmt-nix.
Relevant isssue: numtide/treefmt-nix#265

@jwillikers jwillikers changed the title justfmt just fmt always updates the timestamp of the file Nov 23, 2024
@casey
Copy link
Owner

casey commented Nov 23, 2024

Thanks for reporting this! Fixed in #2479.

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