You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "zouyx (GitHub)" <gi...@apache.org> on 2019/12/20 10:37:51 UTC

[GitHub] [dubbo-go] zouyx commented on issue #110: dubbo-go中使用常见问题说明

> invalid pseudo-version: does not match version-control timestamp:
> ![image](https://user-images.githubusercontent.com/9923838/70761408-19925680-1d88-11ea-8161-773035ddd154.png)
> 
> `go: github.com/apache/dubbo-go@v0.1.2-0.20190923162929-95f857c89fd2: invalid pseudo-version: does not match version-control timestamp (2019-09-23T08:29:29Z)`
> After upgrading your go version to 1.3, someone may got this error.
> 
> go 1.3 add [some validations](https://tip.golang.org/doc/go1.13#version-validation)
> **The solution is changing your timezone to UTC**
> 
> https://go-review.googlesource.com/c/go/+/211137#message-cffdbbe51cc94dd25180fd81b426ccba58db7123
> 
> Chinese:
> 这个问题其实就是升级到go 1.13之后会出现的。go 1.13对依赖多了比较多的校验,其中一个就是校验commit id和时间戳是否匹配。
> 
> 然而时间戳它使用的是UTC。在中国,大部分人设置的时区都不是UTC,所以会出现问题。只需要将自己的时区调整到UTC就可以了。

其实只需要开发者使用UTC时间戳,不需要设置本机时区,有两个方法从两个维度调整commitid和时间戳

* 使用以下链接,将commitid修改成短commitid,就会提示正确的commitid,跟着修改就行了

```
https://proxy.golang.org/github.com/apache/dubbo-go/@v/v0.1.2-0.20191219122420-56cb00a83ba8.mod
```

* 修改commitid成正确之后,再次访问就会提示正确的时间戳。

[ Full content available at: https://github.com/apache/dubbo-go/issues/110 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org