2017-06-05 74 views
0

我试图在指南here之后的Ubuntu 17中设置hyperledger结构。我遵循所有步骤,GOPATH是正确的,总是有同样的错误。Hyperledger Fabric“Makefile:107:目标配方'许可证'失败”

docker tag hyperledger/fabric-tools hyperledger/fabric-tools:x86_64-1.0.0-alpha3-snapshot-ed020470 
LINT: Running code checks.. 
Checking ./bccsp 
Checking ./common 
Checking ./core 
Checking ./events 
Checking ./examples 
Checking ./gossip 
Checking ./msp 
Checking ./orderer 
Checking ./peer 
Checking ./protos 
Checking Go files for license headers ... 
The following files are missing license headers: 
./orderer/kafka/partitioner.go 
./orderer/kafka/partitioner_test.go 
./orderer/mocks/util/util.go 
./orderer/mocks/util/util_test.go 
./test/chaincodes/BadImport/main.go 
./protos/common/common_test.go 
./protos/common/ledger_test.go 
./protos/common/configtx_test.go 
./protos/common/configuration_test.go 
./protos/common/policies_test.go 
./core/comm/connection.go 
./core/comm/config_test.go 
./core/comm/server.go 
./core/comm/creds_test.go 
./core/comm/creds.go 
./core/comm/config.go 
./core/config/config_test.go 
./core/deliverservice/deliveryclient.go 
./peer/node/start.go 
./peer/common/common_test.go 
**Makefile:107: recipe for target 'license' failed make: *** [license] Error 1** 

这些是原始的,他们没有任何修改...任何想法?

回答

0

我被困在一个类似的问题上。我得到的make错误还提到了几个* .go文件。

The following files are missing SPDX-License-Identifier headers: 
core/deliverservice/client.go 
core/deliverservice/client_test.go 
core/deliverservice/deliveryclient_test.go 
Please replace the Apache license header comment text with: 
SPDX-License-Identifier: Apache-2.0 
Makefile:111: recipe for target 'license' failed 
make: *** [license] Error 1` 

什么解决了我提到的问题here在上述文件的顶部添加了以下内容。

/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */

仅供参考,在我的情况正发生故障的文件是client.goclient_test.godeliveryclient_test.go目录下src/github.com/hyperledger/fabric/core/deliverservice/

相关问题