[issue] v2.1.0 依赖错误
【问题分类】
- bug
- 环境依赖
【问题描述】(请对问题进行描述,方便定位问题)
v2.1.0 版本编译失败。根据日志显示是 chainmaker.org/chainmaker-go/txpool 依赖的 github.com/pingcap/pd/v4 版本错误
【相关日志文件】(如果有报错日志请贴图,或者上传附件)
go mod tidy
go: chainmaker.org/chainmaker-go/txpool@v0.0.0 requires
github.com/studyzy/sqlparse@v0.0.0-20210525032257-e7b9574609c3 requires
github.com/pingcap/tidb@v1.1.0-beta.0.20200630082100-328b6d0a955c requires
github.com/pingcap/br@v0.0.0-20200623060633-439a1c2b2bfd requires
github.com/pingcap/tidb@v1.1.0-beta.0.20200606093724-b5b4da0e6a90 requires
github.com/pingcap/br@v0.0.0-20200521085655-53201addd4ad requires
github.com/pingcap/tidb@v1.1.0-beta.0.20200509133407-a9dc72cf2558 requires
github.com/pingcap/pd/v4@v4.0.0-rc.1.0.20200422143320-428acd53eba2: Get "https://proxy.golang.org/github.com/pingcap/pd/v4/@v/v4.0.0-rc.1.0.20200422143320-428acd53eba2.mod": dial tcp 142.251.43.17:443: connect: connection timed out
go: chainmaker.org/chainmaker-go/txpool@v0.0.0 requires
github.com/studyzy/sqlparse@v0.0.0-20210525032257-e7b9574609c3 requires
github.com/pingcap/tidb@v1.1.0-beta.0.20200630082100-328b6d0a955c requires
github.com/pingcap/br@v0.0.0-20200623060633-439a1c2b2bfd requires
github.com/pingcap/tidb@v1.1.0-beta.0.20200606093724-b5b4da0e6a90 requires
github.com/pingcap/br@v0.0.0-20200521085655-53201addd4ad requires
github.com/pingcap/tidb@v1.1.0-beta.0.20200509133407-a9dc72cf2558 requires
github.com/pingcap/pd/v4@v4.0.0-rc.1.0.20200422143320-428acd53eba2: Get "https://proxy.golang.org/github.com/pingcap/pd/v4/@v/v4.0.0-rc.1.0.20200422143320-428acd53eba2.mod": dial tcp 142.251.43.17:443: connect: connection timed out
【系统信息】(请填写系统信息,方便定位问题)
- **chainmaker-go version * :[v2.1.0]
- **OS & version * : centos 7.9
解决办法
在 go.mod 里的 replace 部分增加
github.com/pingcap/pd/v4 v4.0.0-rc.1.0.20200422143320-428acd53eba2 => github.com/pingcap/pd/v4 v4.0.1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information