I have an issue with go get command

xuanbao · · 502 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>When I run go get -u some/github/repo it says &#34;sh #### fork: child -1 CreateProcessW failed for &#39;path\to\Git\usr\bin\sh.exe&#39;, errno 13 </p> <p>Is it a permission problem with go? Or git? What permission do I need to grant? </p> <hr/>**评论:**<br/><br/>mcandre: <pre><p>Looks like you are using a cygwin-like environment. Caution: sh.exe provided by cygwin esp Chocolatey packages often segfaults.</p> <p>The main solution is to avoid cygwin and use more reliable environments. Windows Linux Subsystem. Docker. Virtual machines. Linux on bare metal.</p></pre>LiquidShadowFox: <pre><p>I&#39;m using git for windows no cygwin</p></pre>ChristophBerger: <pre><p>Git for Windows uses MSYS2 under the hood, which is a stripped-down version of Cygwin.</p> <p><a href="https://community.atlassian.com/t5/Git-questions/Initialise-repository-for-Git-Flow-failed-in-sourceTree-2-1-2-4/qaq-p/593891" rel="nofollow">This thread</a> 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.</p></pre>

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

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