You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/05/09 02:41:03 UTC

[GitHub] [servicecomb-service-center] ChinX commented on issue #547: pkg/util/uuid.go GenerateUuid error

ChinX commented on issue #547: pkg/util/uuid.go GenerateUuid error
URL: https://github.com/apache/servicecomb-service-center/issues/547#issuecomment-490721475
 
 
   能够描述一下具体操作和错误信息么?
   
   我刚在自己机器上验证了编译,以及调用生成uuid的接口,是没有问题的
   不知道你是否使用了go的包管理工具 go module, sc的go.mod文件指定了引入依赖的版本,对方更新包是不会影响到sc的
   
   建议使用go module进行包管理,这样可以跟着sc版本节奏,避免不必要的问题,大概操作如下:
   设置环境变量(解决“墙”的问题):export GOPROXY=https://goproxy.io
   编译:GO111MODULE=on go build -o service-center -v .
   
   如果希望使用vendor目录进行编译可以执行
   GO111MODULE=on go mod tidy
   GO111MODULE=on go mod vendor
   go build -o service-center -v .

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


With regards,
Apache Git Services