Hyperledger 构建锯齿形seth tp时的protobuf错误

Hyperledger 构建锯齿形seth tp时的protobuf错误,hyperledger,hyperledger-sawtooth,Hyperledger,Hyperledger Sawtooth,我开始学习锯齿形。最初我计划在锯齿网络上安装以太坊智能合约。为了做到这一点,我在执行此命令后,会出现以下错误,docker compose up--build ../github.com/hyperledger/sawtooth-sdk-go/processor/context.go:24:2: cannot find package "protobuf/events_pb2" in any of: /usr/lib/go-1.11/src/protobuf/events_pb2 (from $

我开始学习锯齿形。最初我计划在锯齿网络上安装以太坊智能合约。为了做到这一点,我在执行此命令后,会出现以下错误,
docker compose up--build

../github.com/hyperledger/sawtooth-sdk-go/processor/context.go:24:2: cannot find package "protobuf/events_pb2" in any of:
/usr/lib/go-1.11/src/protobuf/events_pb2 (from $GOROOT)
/project/sawtooth-seth/processor/src/protobuf/events_pb2 (from $GOPATH)
/project/sawtooth-seth/burrow/src/protobuf/events_pb2
/project/sawtooth-seth/common/src/protobuf/events_pb2
../github.com/hyperledger/sawtooth-sdk-go/processor/processor.go:28:2: cannot find package "protobuf/network_pb2" in any of:
/usr/lib/go-1.11/src/protobuf/network_pb2 (from $GOROOT)
/project/sawtooth-seth/processor/src/protobuf/network_pb2 (from $GOPATH)
/project/sawtooth-seth/burrow/src/protobuf/network_pb2
/project/sawtooth-seth/common/src/protobuf/network_pb2
../github.com/hyperledger/sawtooth-sdk-go/processor/handler.go:30:2: cannot find package "protobuf/processor_pb2" in any of:
/usr/lib/go-1.11/src/protobuf/processor_pb2 (from $GOROOT)
/project/sawtooth-seth/processor/src/protobuf/processor_pb2 (from $GOPATH)
/project/sawtooth-seth/burrow/src/protobuf/processor_pb2
/project/sawtooth-seth/common/src/protobuf/processor_pb2
../github.com/hyperledger/sawtooth-sdk-go/processor/context.go:25:2: cannot find package "protobuf/state_context_pb2" in any of:
/usr/lib/go-1.11/src/protobuf/state_context_pb2 (from $GOROOT)
/project/sawtooth-seth/processor/src/protobuf/state_context_pb2 (from $GOPATH)
/project/sawtooth-seth/burrow/src/protobuf/state_context_pb2
/project/sawtooth-seth/common/src/protobuf/state_context_pb2
../github.com/hyperledger/sawtooth-sdk-go/processor/worker.go:27:2: cannot find package "protobuf/transaction_pb2" in any of:
/usr/lib/go-1.11/src/protobuf/transaction_pb2 (from $GOROOT)
/project/sawtooth-seth/processor/src/protobuf/transaction_pb2 (from $GOPATH)
/project/sawtooth-seth/burrow/src/protobuf/transaction_pb2
/project/sawtooth-seth/common/src/protobuf/transaction_pb2
../github.com/hyperledger/sawtooth-sdk-go/messaging/connection.go:28:2: cannot find package 
"protobuf/validator_pb2" in any of:
/usr/lib/go-1.11/src/protobuf/validator_pb2 (from $GOROOT)
/project/sawtooth-seth/processor/src/protobuf/validator_pb2 (from $GOPATH)
/project/sawtooth-seth/burrow/src/protobuf/validator_pb2
/project/sawtooth-seth/common/src/protobuf/validator_pb2
ERROR: Service 'seth-tp' failed to build: The command '/bin/sh -c go build -o /project/sawtooth-seth/processor/bin/seth-tp' returned a non-zero code: 1
[新答覆]

此错误现已修复。公共关系已经合并

__

[旧答案]

您看到的错误是因为最近sawtooth sdk go更新了protobuf文件的处理方式。详细信息请参见本PR

为了提供更多信息,应在GOPATH中设置SDK的src/protobuf。此外,应更新代码,以开始使用打包的protobuf文件,而不是在每次构建时重新生成它们

公共关系解决了这个问题。请使用它,直到代码合并到主线

您还可以通过RocketChat频道#sawtooth seth和#sawtooth sdk dev了解更多信息