很抱歉打断你们,但我想知道如何才能运行Hyperledger Fabric代码。
我下载了所有的Go,Docker,Docker composer,VSCode和那些Go插件。当我在/orderer/solo
中使用go test consensus_test.go
时。
它会给我这些答案,那么我如何运行这些代码呢?谢谢。
$fabric@ubuntu:~/go/src/github.com/hyperledger/fabric/orderer/consensus/solo$ go test consensus_test.go
# command-line-arguments
./consensus_test.go:35:26: undefined: pkgLogID
./consensus_test.go:45:48: undefined: chain
./consensus_test.go:74:8: undefined: newChain
./consensus_test.go:95:11: undefined: New
./consensus_test.go:116:8: undefined: newChain
./consensus_test.go:134:8: undefined: newChain
./consensus_test.go:178:8: undefined: newChain
./consensus_test.go:220:8: undefined: newChain
./consensus_test.go:256:8: undefined: newChain
./consensus_test.go:293:8: undefined: newChain
./consensus_test.go:293:8: too many errors
FAIL command-line-arguments [build failed]
fabric@ubuntu:~/go/src/github.com/hyperledger/fabric/orderer/consensus/solo$
发布于 2018-06-10 21:10:20
解决了,但我不知道发生了什么和为什么。VScode会在顶部给出一个"run file test||run package test“提示,我点击它,它就会运行成功。
https://stackoverflow.com/questions/50783955
复制相似问题