0

hyperledger/fabric プロジェクトをフォークし、レポで次のコマンドを使用して ECA の単体テストを実行しようとしました: ただし、次のエラーが表示されます:

vagrant@hyperledger-devenv:v0.0.10-37b6688:/opt/gopath/src/github.com/hyperledger/fabric/membersrvc/ca$ go test eca_test.go
コマンドライン引数
eca_test.go:30:2: できません /opt/go/src/ command- /vendor /github.com/golang/protobuf/proto ($GOROOT から) /optのいずれかで、パッケージ「command-/vendor /github.com/golang/protobuf/proto」を見つけます。 /gopath/src/ command- /vendor /github.com/golang/protobuf/proto (from $GOPATH) FAIL コマンドライン引数 [セットアップに失敗しました]


同様に、CA 単体テストを実行しようとすると、次のエラーが発生します。

vagrant@hyperledger-devenv:v0.0.10-37b6688:/opt/gopath/src/github.com/hyperledger/fabric/membersrvc/ca$ go test ca_test.go
コマンドライン引数
ca_test.go:28:2: できません/opt/go/src/command-/vendor/github.com/spf13/viper ($GOROOT から)
/opt/gopath/srcのいずれかで、パッケージ「command-/vendor/github.com/spf13/viper」を見つけます。/command-/vendor/github.com/spf13/viper (>$GOPATH から)
FAIL コマンドライン引数 [セットアップに失敗しました]

これらは数日前に機能していましたが、ハイパーレジャー/プロジェクトからの最新の変更でフォークを更新した後、テストを実行できませ

これが私のGOPATHの値です:

vagrant@hyperledger-devenv:v0.0.10-37b6688:/opt/gopath/src/github.com/hyperledger/fabric$ echo $GOPATH /opt/gopath

インポートされたパッケージを探すときに、golang ビルド システムがパスに「command-/vendor」を追加する理由がわかりません。誰でもこれで私を助けてくれますか?

4

1 に答える 1