尝试为Hyperledger Fabric 2.2设置开发环境时,我在执行'make dist-clean all‘命令时遇到此错误
All files have SPDX-License-Identifier headers
Building github.com/client9/misspell/cmd/misspell -> misspell
Checking changed go files for spelling errors ...
spell checker passed
Checking for go:generate parent path references
Checking trailing spaces ...
DEP: Checking for dependency issues..
./scripts/check_deps.sh
Building golang.org/x/tools/cmd/goimports -> goimports
Building mvdan.cc/gofumpt -> gofumpt
Building honnef.co/go/tools/cmd/staticcheck -> staticcheck
LINT: Running code checks..
./scripts/golinter.sh
Checking with goimports
Checking with gofumpt
Checking for golang.org/x/net/context
Checking for github.com/gogo/protobuf
Checking with go vet
Checking with staticcheck
The following staticcheck issues were flagged
vendor/github.com/dustin/go-humanize/number.go:76:9: constant overflow (compile)
vendor/github.com/onsi/ginkgo/internal/leafnodes/benchmarker.go:82:25: constant overflow (compile)
make: *** [Makefile:186: linter] Error 1任何帮助都是非常感谢的。
发布于 2021-09-29 09:32:24
如果你查看fabric https://github.com/hyperledger/fabric/releases的releases页面,它会告诉你应该使用哪个版本的Go来构建标记版本的fabric。如果你是在release分支的基础上构建的,那么你应该检查代码,看看要使用哪个Go版本,使用任何其他版本都会有问题(如你所见)。目前2.2.4和2.2使用的是goLang 1.16.7 (在撰写本文时)。如果您希望为迁移到较新版本的GoLang做出贡献,则需要在迁移过程中调查并修复任何构建中断
https://stackoverflow.com/questions/69370747
复制相似问题