doutuanxiao4619
doutuanxiao4619
2019-03-17 09:18

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

  • IT行业问题
  • 计算机技术
  • it技术
  • 编程语言问答
  • 互联网问答
已采纳

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 dongluo9156 2年前

    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.

    点赞 评论 复制链接分享

为你推荐