Description
When run on a file to be formatted in place nixfmt does not persist file ownership. When run as a user that is not the owner of the file but has permissions to edit the file the formatted file ownership will be changed to the user running nixfmt.
This can be easily worked around and is a remote edge case to begin with but I'm reporting it still for completeness sake.
Thank you for the great work from a fellow nixer from Tallinn!
Description
When run on a file to be formatted in place nixfmt does not persist file ownership. When run as a user that is not the owner of the file but has permissions to edit the file the formatted file ownership will be changed to the user running nixfmt.
This can be easily worked around and is a remote edge case to begin with but I'm reporting it still for completeness sake.
Thank you for the great work from a fellow nixer from Tallinn!