csharp;gutter:true;
go: lottery/rpc imports
git.apache.org/thrift.git/lib/go/thrift: git.apache.org/thrift.git@v0.16.0: parsing go.mod:
module declares its path as: github.com/apache/thrift
but was required as: git.apache.org/thrift.git
![关于go mod安装第三方包提示: module declares its path as: github.com/apache/thrift but was required as: git.apache.org/thrift.git 解决办法](https://johngo-pic.oss-cn-beijing.aliyuncs.com/articles/20220830/1043600-20220316112617346-92177789.png)
解决方案:
replace git.apache.org/thrift.git v0.16.0 => github.com/apache/thrift v0.16.0
然后:
csharp;gutter:true;go mod tidygo mod vendor
Original: https://www.cnblogs.com/rxbook/p/16012074.html
Author: 浮.尘
Title: 关于go mod安装第三方包提示: module declares its path as: github.com/apache/thrift but was required as: git.apache.org/thrift.git 解决办法