-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove file_windows.go #7845
Remove file_windows.go #7845
Conversation
Signed-off-by: Manuel Buil <mbuil@suse.com>
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #7845 +/- ##
===========================================
+ Coverage 19.85% 51.53% +31.68%
===========================================
Files 83 143 +60
Lines 7686 14512 +6826
===========================================
+ Hits 1526 7479 +5953
+ Misses 5930 5846 -84
- Partials 230 1187 +957
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
I would test RKE2 and make sure this doesn't affect it. Edit: I see the original creation is only around k3s, not rke2/windows support. |
Yes. I tested this with simple go files and it works correctly. Of course the file modes are different in windows and linux, like 0644 has no meaning in Windows. So for the functions that do
And then, depending on the OS use 0400 or 0200 (off the top of my head) Currently, for windows we were doing nothing and returning err = nil, which is what happens if you pass a mode which does not make sense in Windows (e.g. 0644), so we are not changing any behaviour. Besides, k3s is not supporting windows, so the impact is minimal |
Proposed Changes
Removes the
file_windows.go
file and changesfile.go
so that it is included in windows buildsTypes of Changes
Bug fix
Verification
Run k3s on windows/linux and make sure things work (e.g. the password file which is written by using these functions)
Testing
Linked Issues
#7844
User-Facing Change
Further Comments