mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
3ede316faa
* feat: do not overwrite file on fmt without changes When no changes are detected, avoid unnecessary rewrite. It also help fmt CI tools not to see modified files like treefmt Signed-off-by: Loïc Rosso <37541460+Loic-R@users.noreply.github.com> * chore: add tests Signed-off-by: Loïc Rosso <37541460+Loic-R@users.noreply.github.com> * chore: fix tests by adding 2 sec sleep time Signed-off-by: Loïc Rosso <37541460+Loic-R@users.noreply.github.com> * chore: reduce sleep time, add permission check and better naming Co-authored-by: Charlie Egan <charlie_egan@apple.com> Signed-off-by: Loïc Rosso <37541460+Loic-R@users.noreply.github.com> --------- Signed-off-by: Loïc Rosso <37541460+Loic-R@users.noreply.github.com> Co-authored-by: Charlie Egan <charlie_egan@apple.com>