首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Hyperledger Fabric:已标记以下静态检查问题:* [Makefile:186: linter]错误1

Hyperledger Fabric:已标记以下静态检查问题:* [Makefile:186: linter]错误1
EN

Stack Overflow用户
提问于 2021-09-29 05:16:23
回答 1查看 55关注 0票数 0

尝试为Hyperledger Fabric 2.2设置开发环境时,我在执行'make dist-clean all‘命令时遇到此错误

代码语言:javascript
复制
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

任何帮助都是非常感谢的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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做出贡献,则需要在迁移过程中调查并修复任何构建中断

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69370747

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档