-
Notifications
You must be signed in to change notification settings - Fork 37
updating import links for shim and peer package #24
base: master
Are you sure you want to change the base?
Conversation
The shim and peer protobuf modules are no longer vendored automatically by Fabric, so they are needed to vendor individually.
@oscillator25 |
@harishkgithub You can either individually include the required files during your local environment configuration or use the updated path in the chaincode. For me, things worked fine thereafter. If I can be of any other help, please feel free to reach out by replying to this thread. P.S.: "go get" didn't worked for the same reason that the required shim and peer packages have been moved to separate locations. |
Thanks for explanation but just an observation 1)I had upgrade go to 1.17 with this I am able to package successfully with current import statements itself but when I try to deploy I get the below exception in VS code
my go.mod
2)I tried to package again using your suggestions for import statements
same observation able to package successfully [ ".tar.gz" ] I tried deleting "go.mod" file, it brought back me to old issue of "compiler errors" I guess with go.mod file and 1.17 version even the current code is not throwing exception
Please tell me if my conclusions are correct? Thanks in advance |
Ignore my previous comment I re-tried from scratch using this PR fix following helped create package without errors Prequsite:
ii)
4)Open VsCode at the directory where "crowdfunding.go" is present I am completely new to "go" and "blockchain" hence then lengthy post :-( hope it helps someone like me |
The shim and peer protobuf modules are no longer vendored automatically by Fabric, so they are needed to vendor individually otherwise they lead to the issue as depicted in the attached screenshot.