2017-06-05 105 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/

相關問題