Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add external go package in hyperledger chaincode

How to add external go package in hyperledger chaincode. error image

like image 641
raja sekar Avatar asked Feb 17 '26 10:02

raja sekar


1 Answers

The best option to go is to have your external package vendored inside the chaincode, you need to cd into your chaincode package and run:

govendor init
govendor fetch path_to_external_package

You can find more about go vendoring here.

like image 183
Artem Barger Avatar answered Feb 21 '26 14:02

Artem Barger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!