Update module dependencies for fabric Go Chaincode
davidkel opened this issue · 3 comments
davidkel commented
- fabcar
- fixed-asset
- fixed-asset-base
davidkel commented
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
davidkel commented
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 ?
MukulKolpe commented
Hey @davidkel, can I work on this issue?