caliper-benchmarks icon indicating copy to clipboard operation
caliper-benchmarks copied to clipboard

Update module dependencies for fabric Go Chaincode

Open davidkel opened this issue 3 years ago • 3 comments

  • [ ] fabcar
  • [ ] fixed-asset
  • [ ] fixed-asset-base

davidkel avatar Feb 01 '22 16:02 davidkel

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

davidkel avatar Feb 17 '22 15:02 davidkel

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 ?

davidkel avatar Feb 17 '22 15:02 davidkel

Hey @davidkel, can I work on this issue?

MukulKolpe avatar May 07 '23 04:05 MukulKolpe