Skip to content

shapeshift/thornode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

THORChain

Fork Maintenance

The gitlab repository does not track the generated protobuf pb.go files for security reasons.

In order to use gitlab.com/thorchain/thornode as a golang dependency, a fork needs to be maintained and updated for and supported versions.

Steps to support a new release:

  1. Add upstream repository

    git remote add upstream https://gitlab.com/thorchain/thornode.git
  2. Fetch release branch

    git fetch upstream release-1.95.0
  3. Remove cached terraform artifacts that blow out the github upload limit

    git filter-branch -f --index-filter 'git rm --cached -r --ignore-unmatch infra/.terraform/'
  4. Generate protobuf files

    make protob
  5. Update .gitignore to track pb.go files

    sed -i '/*.pb.go/d' .gitignore
  6. Add and commit files

    git add .
    git commit -m "chore(release): v1.95.0 (generated protobuf)"
  7. Tag release version

    git tag v1.95.0
  8. Push release branch and tag

    git push origin release-1.95.0
    git push origin v1.95.0

Steps to use forked dependency in your golang project:

  1. Add gitlab.com/thorchain/thornode dependency

    go get gitlab.com/thorchain/thornode
  2. Replace dependency with forked version

    go mod edit -replace gitlab.com/thorchain/thornode=github.com/shapeshift/thornode@v1.95.0
  3. Tidy go modules as needed

    go mod tidy