I have an issue with go get command

xuanbao · 2017-10-09 20:00:05 · 673 次点击    
这是一个分享于 2017-10-09 20:00:05 的资源,其中的信息可能已经有所发展或是发生改变。

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:

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.

LiquidShadowFox:

I'm using git for windows no cygwin

ChristophBerger:

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.


入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

673 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传