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

从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 网络科学导论,网络控制
  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)