doutuanxiao4619 2019-03-17 09:18
浏览 114
已采纳

无法更新套件(执行:错误加载模块要求)

I want to update my package but when i run -v command to get latest updates the command line hit an err

go get -v ./...

what happens?

> go: finding github.com/aws/aws-sdk-go v1.17.11 go: finding
> github.com/aws/aws-sdk-go v1.17.7 go: finding
> github.com/aws/aws-sdk-go v1.16.32 go:
> github.com/aws/aws-sdk-go@v1.17.7: git -c protocol.version=0 fetch
> --unshallow -f https://github.com/aws/aws-sdk-go refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in
> /Users/fly/go/pkg/mod/cache/vcs/cb1953cbdfd14fc2ffce4dfd06487e8d5a0c96da00d00bdef65874ff644eaa26:
> exit status 128:  warning: redirecting to
> https://github.com/aws/aws-sdk-go/    fatal: Unable to create
> '/Users/fly/go/pkg/mod/cache/vcs/cb1953cbdfd14fc2ffce4dfd06487e8d5a0c96da00d00bdef65874ff644eaa26/shallow.lock':
> File exists.
> 
>   Another git process seems to be running in this repository, e.g.    an
> editor opened by 'git commit'. Please make sure all processes     are
> terminated then try again. If it still fails, a git process   may have
> crashed in this repository earlier:   remove the file manually to
> continue. go: github.com/aws/aws-sdk-go@v1.16.32: unknown revision
> v1.16.32 go: github.com/aws/aws-sdk-go@v1.17.11: unknown revision
> v1.17.11 go: error loading module requirements
  • 写回答

1条回答 默认 最新

  • dongluo9156 2019-03-17 09:55
    关注

    The error message is pretty clear here:

    Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again.

    When you run go get the git command is used to load everything. So there is another process using git.

    Just end the other git command and it will work.

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

报告相同问题?

悬赏问题

  • ¥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,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵