Gosdk

How to use specific gosdk for testing

Steps:

  1. Select specific gosdk branch/version from 0chain/gosdk repository.

  2. To use the above(step 1) gosdk branch/version clone the dependent repository(e.g. blobber, zwalletcli, zboxcli) to your local

  3. After cloning the repository your default branch will be staging. So either create a new branch or checkout to your working branch.

  4. Replace the gosdk version in go.mod file with the branch/version as selected in step 1.

  5. Run the below command to make the changes into go.sum automatically.

    go mod tidy
  6. Push the changes to repository and create builds using your branch.

  7. Now use your branch for doing testing.

Last updated