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/07/30 11:50:46 UTC

[GitHub] [dubbo-go] Patrick0308 opened a new issue #682: Error when do command go fmt

Patrick0308 opened a new issue #682:
URL: https://github.com/apache/dubbo-go/issues/682


   <!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
   
   -->
   
   
   **What happened**:
   When do `go fmt ./... && [[ -z `git status -s` ]]` will error
   ![image](https://user-images.githubusercontent.com/5486149/88919492-c41aa380-d29d-11ea-8d9a-8bf38d87804b.png)
   
   **What you expected to happen**:
   
   **How to reproduce it (as minimally and precisely as possible)**:
   
   **Anything else we need to know?**:
   


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #682:
URL: https://github.com/apache/dubbo-go/issues/682#issuecomment-666417675


   cc @gaoxinge 


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
gaoxinge closed issue #682:
URL: https://github.com/apache/dubbo-go/issues/682


   


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
gaoxinge commented on issue #682:
URL: https://github.com/apache/dubbo-go/issues/682#issuecomment-666512793


   我暂时无法在下面的环境下重现这个问题:
   
   - 操作系统:windows 10
   - golang版本:1.33
   - 代码:https://github.com/apache/dubbo-go
   - 分支:develop
   
   我看你的报错里面访问了库,这个库在go mod中缓存`pkg/mod/cache/vcs`里面,要不清除go mod的缓存试一下。
   
   @Patrick0308 


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
gaoxinge commented on issue #682:
URL: https://github.com/apache/dubbo-go/issues/682#issuecomment-673570873


   I have fixed this issue in https://github.com/apache/dubbo-go/pull/702.


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
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