hyperledger-labs / blockchain-analyzer

Analyze ledger data stored within a Hyperledger Fabric peer (key updates and operational data such as number of blocks and transactions).
Apache License 2.0
23 stars 17 forks source link

"go get github.com/hyperledger/fabric-sdk-go" doesn't working #13

Closed lotty02cho closed 4 years ago

lotty02cho commented 5 years ago

I try to run this project by following README.md.

but when I start to run Beats Agent, I saw that kind of below issue.

go get -u github.com/hyperledger/fabric-sdk-go
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
    ignoring go.mod;
    see 'go help modules'

Does anyone that kind of issue? I guess it is related to golang or absolute path... but I don't know.

balazsprehoda commented 5 years ago

I think it is related to go modules not working under $GOPATH, I am going to check. Meanwhile, you could try to simply clone the fabric-sdk-go github repository and place it under $GOPATH/src/github.com/hyperledger, then run this project. The warning won't disappear, but I think it will run fine.

salmanbaset commented 5 years ago

I am getting similar issue. The modules need fixing. Try the solution that @balazsprehoda suggested or getting vendor modules from this old commit: https://github.com/hyperledger-labs/blockchain-analyzer/tree/14199bfa3e770822a7877652d1a589b425b94894/agent/fabricbeat/vendor/github.com

balazsprehoda commented 5 years ago

Placing the fabric-sdk-go package inside vendor dir in fabricbeat should resolve the problem. However, it is going to break the dumper program.

salmanbaset commented 4 years ago

@lotty02cho for now, the fabric-sdk-go has been included in the repo. See instructions here on building the agent: https://github.com/hyperledger-labs/blockchain-analyzer/blob/master/docs/Basic_setup.md#build-fabricbeat-agent

balazsprehoda commented 4 years ago

Since this issue is outdated, I am closing it now.