-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
Access denied to .solution.json on Windows #557
Comments
Is seems that this one won't be easily fixed. We would have to use a modified implemtation of the file write / open functions that would pass proper attributes to syscall on windows (see golang/go#25923 (comment) ) While possible, less tricky solutions could be :
|
I'm kind of OK with not hiding the file, to be honest. Another thing we could consider is to only try to write it if it's different from what's there, in which case we could delete and rewrite (for all platforms). |
@FabienTregan I am unable to reproduce this issue on Windows following the steps you called out above. I need to dive deeper into the issue and visibility package to get a better understanding of what is going on. Is this a limitation of Windows with dot files? I used them, but only ever modify via cli without issue. Does this issue have anything to do with UAC on Windows levels? |
Te issue is currently workedaround by th following lines : Lines 72 to 79 in 0520301
It seems possible that PR #630 allows us to delete those two lines. |
Environement
Observed behaviour
If you try to download an exercism twice, the second time it will fail because with an access denied. Submiting also gives the same error 👍
The problem probably occures anytime the .solution file is modified.
#Expected behaviour
Just working :)
#Analysis
Possible solutions
Since I could not find a way to write to hidden files on windows with go, two possible solutions come to me:
The text was updated successfully, but these errors were encountered: