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.
-
Add upstream repository
git remote add upstream https://gitlab.com/thorchain/thornode.git
-
Fetch release branch
git fetch upstream release-1.95.0
-
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/'
-
Generate protobuf files
make protob
-
Update
.gitignore
to trackpb.go
filessed -i '/*.pb.go/d' .gitignore
-
Add and commit files
git add . git commit -m "chore(release): v1.95.0 (generated protobuf)"
-
Tag release version
git tag v1.95.0
-
Push release branch and tag
git push origin release-1.95.0 git push origin v1.95.0
-
Add
gitlab.com/thorchain/thornode
dependencygo get gitlab.com/thorchain/thornode
-
Replace dependency with forked version
go mod edit -replace gitlab.com/thorchain/thornode=github.com/shapeshift/thornode@v1.95.0
-
Tidy go modules as needed
go mod tidy