hyperledger/caliper-benchmarks

Update module dependencies for fabric Go Chaincode

davidkel opened this issue · 3 comments

  • fabcar
  • fixed-asset
  • fixed-asset-base

For fabcar:

  1. delete go.mod and go.sum files
  2. 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

  1. delete go.mod and go.sum files
  2. delete the vendor directory
  3. run go mod init fabric/api/fixed-asset/go
  4. run go mod tidy
  5. run go mod vendor

do we include the vendor directory in the commit ?

Hey @davidkel, can I work on this issue?