0

我正在尝试按照教程为 hyperledger fabric 2.2.1 构建开发环境,并且我从这里获得了源代码。我已经安装了开发工具,没有任何问题,但是在验证构建环境的过程中,我遇到了 goimports 错误。当我make basic-checks为执行许可证、拼写、尾随空格和 linter 的基本检查而运行时,我收到bccsp/pkcs11/pkcs11_test.go文件的 goimports 错误。以下是我对上述命令的日志。

所有文件都被排除在许可证头之外构建 github.com/client9/misspell/cmd/misspell -> mispell fatal: bad revision 'HEAD' fatal: ambiguous argument 'HEAD^..HEAD': unknown revision or path not in the working树。使用 '--' 将路径与修订分开,如下所示:'git [...] -- [...]' 检查更改的 go 文件是否存在拼写错误... xargs: mispell: No such file or directory spell checker通过检查 go:generate parent path references 致命:不明确的参数“HEAD”:未知修订或路径不在工作树中。使用 '--' 将路径与修订分开,如下所示:'git [...] -- [...]' Checking trailing spaces ... DEP: Checking for dependency issues.. ./scripts/check_deps.sh构建 golang.org/x/tools/cmd/goimports -> goimports LINT:

我无法在该文件中找到问题所在。

4

0 回答 0