You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2020/08/08 08:12:19 UTC

[GitHub] [dubbo-go] gaoxinge commented on issue #682: Error when do command go fmt

gaoxinge commented on issue #682:
URL: https://github.com/apache/dubbo-go/issues/682#issuecomment-670842945


   调查了一下这个报错,得到以下结果:
   
   - 不知道为什么我的电脑上能跑,照理来说应该也会报错,因为我也没有`bzr`命令,手动狗头
   - `bzr`是类似`git`的版本控制工具。早期的`launchpad.net/gocheck`是基于`bzr`管理的,根据[官网](https://launchpad.net/gocheck)的说法现在已经迁移到了github上,地址位于[go-check/check](https://github.com/go-check/check)上
   - [hashicorp/consul/blob/v1.8.0/go.mod](https://github.com/hashicorp/consul/blob/v1.8.0/go.mod#L9)自身也使用`replace`把`bzr`替换成了`git`的版本
   
   结论:
   
   - @Patrick0308 你有空帮我测一下下面的命令在你本地能不能跑:
   
   ```shell
   go mod edit -replace launchpad.net/gocheck=github.com/go-check/check@v0.0.0-20140225173054-eb6ee6f84d0a
   go mod tidy 
   go mod vendor
   ```
   - 我先在 https://github.com/apache/dubbo-go/pull/702 里面把这个问题使用`replace`的方式fix掉


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org