Open Bios-Marcel opened 1 year ago
Perhaps there's a different way of asserting that the overwritten file has the correct permissions…? I can't recall why exactly that assertion is in place, to be honest. 🤔
Wouldn't calling FileMode be enough? I am a little confused as to what we need umask for?
I noticed that there are a couple more tests that don't really work on windows.
A workaround would be to manipulate the file and see whether both files change.
Additionally, some of the tests make assumptions on filepaths (different separators).
There are calls to
syscall.Umask
, which isn't supported on Windows. That test could be moved to a !windows only file.