dongwen5870 2017-10-23 11:03
浏览 1159
已采纳

从Github位置获取go软件包时,克隆git存储库时退出状态128

I want to configure the GoLang GB compiler for the projects in my local. based on the documentation given in the url I am trying to get the gb compiler using the command enter image description here

its returning status code 128. I am unable to understand whats happening here as there is no reference to resolve this issue.

adding GIT_CURL_VERBOSE=1 or 2 is not helping as its not giving any other valuable details as output.

$ GIT_CURL_VERBOSE=1 go get -u -v github.com/constabulary/gb/...
$ github.com/constabulary/gb (download)
$ # cd .; git clone https://github.com/constabulary/gb 
  C:\work\GitHub\GoLib\src\github.com\constabulary\gb
  Cloning into 'C:\work\GitHub\GoLib\src\github.com\constabulary\gb'...
  package github.com/constabulary/gb/...: exit status 128

Still getting the avove output

below is the output when not using -u

$ GIT_TRACE=2 go get -v github.com/constabulary/gb/...
github.com/constabulary/gb (download)
# cd .; git clone https://github.com/constabulary/gb 
C:\work\GitHub\GoLib\src\github.com\constabulary\gb
17:20:25.818538 git.c:328               trace: built-in: git 'clone' 
'https://github.com/constabulary/gb' 'C:\work\GitHub\GoLib\                                                
src\github.com\constabulary\gb'
17:20:25.867542 run-command.c:626       trace: run_command: 'remote-https' 
'origin' 'https://github.com/constabulary/gb'
Cloning into 'C:\work\GitHub\GoLib\src\github.com\constabulary\gb'...
17:20:25.970553 git.c:560               trace: exec: 'git-remote-https' 
'origin' 'https://github.com/constabulary/gb'
17:20:25.970553 run-command.c:626       trace: run_command: 'git-remote-
https' 'origin' 'https://github.com/constabulary/gb'
package github.com/constabulary/gb/...: exit status 128
  • 写回答

1条回答 默认 最新

  • dongmeng1868 2017-10-27 06:23
    关注

    I tried to resolve the issue for a couple of days. In My configuration I was on organizational GitHub and the codelibrary I was trying to get was from github.com. So I thought that might be causing the issue. But that was not true.

    I suspected that there is somethisng wrong with the git configuration. as even Organizational github account was not accessible. I tried a lot of solutions from multiple threads.. nothing worked.

    Then I ultimately uninstalled GitHub and tortoise git from My machine and installed it again. and did the complete git configuration setup on my machine from scratch.

    It Worked.

    What caused that issue in first place was identified when I went to uninstall git. Instalation date was the date when the issue started. So i suspect that there was some faulty update installed for git unknowingly and that caused this issue.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch