You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cue/cmd: teach cue fmt to not overwrite formatted files
Currently, `cue fmt` will always write to cue files, regardless of
whether they are formatted or not. In the case of formatted files,
their contents will remain exactly the same, but their modification
time will change.
This is problematic for tools that rely on the mod time.
To fix this, we buffer the original/formatted bytes. If the result
is exactly the same, the file is not written to.
Fixes#1731, #363
Signed-off-by: Noam Dolovich <[email protected]>
Change-Id: Iea55c1eb9e99c1dcba301194857a92dad1faa9ad
0 commit comments