-
Notifications
You must be signed in to change notification settings - Fork 20
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
UncaughtException on Windows runner #21
Comments
Interesting. This looks like it may be a problem with |
Rerunning the failed action with 'enable debug logging' set doesn't give any more output than posted above This may be useful:
(A search on the error message has many similar hits, with similar conclusions) |
The error message
|
Found a clue here nodejs/node#3177
https://github.com/de-vri-es/setup-git-credentials/blob/main/src/main.ts#L26
Try opening with |
Ah, good point. The truncating was added later, but I forgot to update the file mode. Do you want to submit a PR to fix it? If not, I will fix it hopefully early this week. Either way, thanks for the report and the additional information. I'm pretty sure you pinpointed the problem :D |
Thanks; this is a bit out of my wheel house so I'm happy to wait for a fix if and when you try it. |
Al-right, that sounds good! Thanks in advance for the testing. It will help a lot, since I don't have access to a windows machine. |
I've released 2.0.10 which no-longer truncates files, but simply only adds credentials that weren't already present. Since there's no truncate anymore, I think this will also fix the problem on Windows. |
Thanks for the quick turnaround. I confirm that 2.0.10 fixes the issue on my windows runner. btw, it should be straightforward to add windows runners to the new unit tests, by adding Perhaps I should PR that. |
Awesome! Thanks for testing. And a PR to test on windows would be most welcome. I'm also using a few POSIX command line utilities for the tests though, not sure how easy it would be to write that in a cross-platform way. |
PR #23 sketches a sufficiently cross-platform way - specifying (In fact, unaware that the default shell is powershell, my github actions were already |
Cool, that saves us a lot of hassle. Thanks for the PR, and thanks again for the reporting, debugging and testing :D |
(Works for me on ubuntu-22.04 and macos-12 github runners, thanks.)
Fails on windows-2022 and windows-2019 runners with:
The text was updated successfully, but these errors were encountered: