github.com/gogo/protobu: invalid pseudo-version: revision is shorter than canonical

        编译执行go mod tidy时,出现了这个错误,挺恶心的:

        xxx  requires
        github.com/micro/[email protected] requires
        k8s.io/[email protected] requires
        github.com/gogo/[email protected]: invalid pseudo-version: revision is shorter than canonical

 

        搞了大半天,终于找到原因:

        https://github.com/golang/go/issues/3439

 

        解决办法,在go.mod中加:

replace github.com/gogo/protobuf v0.0.0-20190410021324-65acae22fc9 => github.com/gogo/protobuf v0.0.0-20190723190241-65acae22fc9d

github.com/gogo/protobu: invalid pseudo-version: revision is shorter than canonical_第1张图片

       搞定。

 

 

你可能感兴趣的:(S1:,Go,s2:,活捉Bug)