When I run go get -u some/github/repo it says "sh #### fork: child -1 CreateProcessW failed for 'path\to\Git\usr\bin\sh.exe', errno 13
Is it a permission problem with go? Or git? What permission do I need to grant?
评论:
mcandre:
LiquidShadowFox:Looks like you are using a cygwin-like environment. Caution: sh.exe provided by cygwin esp Chocolatey packages often segfaults.
The main solution is to avoid cygwin and use more reliable environments. Windows Linux Subsystem. Docker. Virtual machines. Linux on bare metal.
ChristophBerger:I'm using git for windows no cygwin
Git for Windows uses MSYS2 under the hood, which is a stripped-down version of Cygwin.
This thread from the Atlassian forum discusses a very similar error message, and the reason was some „Dell Data Protection settings“ (don‘t ask me what that is!) that affected the files sh.exe, bash.exe, and mintty.exe.
