Hyperledger Fabric:以下静态检查问题被标记为 make:*** [Makefile:186: linter] Error 1

Hyperledger Fabric: The following staticcheck issues were flagged make: *** [Makefile:186: linter] Error 1

在尝试为 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

感谢任何帮助。

如果您查看 fabric 的发布页面 https://github.com/hyperledger/fabric/releases,它会告诉您应该使用哪个版本的 Go 来构建该标记版本的 fabric。如果您正在构建发布分支,那么您应该检查代码以查看要使用哪个 Go 版本,使用任何其他版本可能会出现问题(如您所见)。目前 2.2.4 和 2.2 使用 goLang 1.16.7(在撰写本文时)。如果您希望为迁移到更新版本的 GoLang 做出贡献,那么您需要调查并修复任何构建中断作为该迁移的一部分