Qitmeer-wallet 编译报错 missing go.sum 解决方案

error:

$ make
go: github.com/BurntSushi/toml@v0.3.1: missing go.sum entry; to add it:
        go mod download github.com/BurntSushi/toml
make: *** [Makefile:33: build] Error 1

解决方式:

使用命令 go mod tidy 进行修复,使用后会重新下载依赖包

$ go mod tidy
go: downloading github.com/stretchr/testify v1.6.1
go: downloading github.com/smartystreets/goconvey v1.6.4
go: downloading gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15
go: downloading gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
go: downloading github.com/kr/pretty v0.2.0
go: downloading github.com/kr/text v0.1.0
go: downloading github.com/onsi/ginkgo v1.12.1
go: downloading github.com/onsi/gomega v1.9.0
go: downloading github.com/nxadm/tail v1.4.4
go: downloading github.com/google/go-cmp v0.4.0
go: downloading github.com/jtolds/gls v4.20.0+incompatible
go: downloading github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d
go: downloading github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1

之后再编译就成功了:

$ make
Done building.
  qitmeer-wallet version 0.10.0+dev-9c222cb-dirty (Go version go1.16.2))
Run "./build/bin/qitmeer-wallet" to launch.

亲测有效!

参考文献: