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
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!
The text was updated successfully, but these errors were encountered:
The reason here is that we do an atomic write by creating a new file and then mving it in place. I suspect it might be impossible to preserve 100% of permissions, but we should, at least, try.
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!
The text was updated successfully, but these errors were encountered: