caliper-benchmarks
caliper-benchmarks copied to clipboard
Update module dependencies for fabric Go Chaincode
- [ ] fabcar
- [ ] fixed-asset
- [ ] fixed-asset-base
For fabcar:
- delete go.mod and go.sum files
- update the dependencies in the code change
"github.com/hyperledger/fabric/core/chaincode/shim"
sc "github.com/hyperledger/fabric/protos/peer"
to
"github.com/hyperledger/fabric-chaincode-go/shim"
sc "github.com/hyperledger/fabric-protos-go/peer"
ensure you have go 1.16 or 1.17 installed
3. in fabcar/go directory run go mod init fabric/samples/fabcar/go
4. then run go mod tidy
for fixed-asset and fixed-asset-base
- delete go.mod and go.sum files
- delete the vendor directory
- run
go mod init fabric/api/fixed-asset/go
- run
go mod tidy
- run
go mod vendor
do we include the vendor directory in the commit ?
Hey @davidkel, can I work on this issue?