Skip to content

Commit

Permalink
Govendor added to documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Kestutis Gudynas <kestutis.gudynas@ibm.com>

Option to continue using Govendor after upgrading chaincdoe to v2.x added to the documentation.

(cherry picked from commit d296963)
  • Loading branch information
Kestutis Gudynas authored and denyeart committed May 18, 2021
1 parent 26b45ca commit 678523b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/upgrade_to_newest_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For information about how to edit the relevant channel configurations to enable

### Chaincode shim changes (Go chaincode only)

The recommended approach is to vendor the shim in your v1.4 Go chaincode before making upgrades to the peers and channels. If you do this, you do not need to make any additional changes to your chaincode.
The recommended approach is to vendor the shim in your v1.4 Go chaincode before making upgrades to the peers and channels. If you are already using an existing tool such as ``govendor`` you may continue using it to vendor the new chaincode shim. Best practice, however, would be to use Go modules to vendor the new chaincode shim, as modules are now the de facto standard for dependency management in the Go ecosystem. Note that since Fabric 2.0.0, chaincode using Go modules without vendored dependencies is also supported. If you do this, you do not need to make any additional changes to your chaincode.

If you did not vendor the shim in your v1.4 chaincode, the old v1.4 chaincode images will still technically work after upgrade, but you are in a risky state. If the chaincode image gets deleted from your environment for whatever reason, the next invoke on v2.x peer will try to rebuild the chaincode image and you'll get an error that the shim cannot be found.

Expand Down

0 comments on commit 678523b

Please sign in to comment.