Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module dependencies for fabric Go Chaincode #161

Open
3 tasks
davidkel opened this issue Feb 1, 2022 · 3 comments
Open
3 tasks

Update module dependencies for fabric Go Chaincode #161

davidkel opened this issue Feb 1, 2022 · 3 comments
Labels
enhancement New feature or request Fabric good first issue Good for newcomers

Comments

@davidkel
Copy link
Contributor

davidkel commented Feb 1, 2022

  • fabcar
  • fixed-asset
  • fixed-asset-base
@davidkel davidkel added enhancement New feature or request Fabric labels Feb 1, 2022
@davidkel
Copy link
Contributor Author

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
Copy link
Contributor Author

davidkel commented Feb 17, 2022

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 davidkel added the good first issue Good for newcomers label Feb 17, 2022
@MukulKolpe
Copy link

Hey @davidkel, can I work on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Fabric good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants