At set of Zera Network packages in Go using GRPC to communicate.
This is a private package which requires github authentication to fetch
How to install latest version on go project
go get -u github.com/ZeraVision/go-zera-network
In the event go get
returns a 404 error:
- Ensure that your machine is using the correct Personal Access Token or is authenticated with Github correctly.
- Temporarily adjust the environment variable to include the repository URL by setting
GOPRIVATE
togithub.com/ZeraVision/go-zera-network
.$env:GOPRIVATE="github.com/*"
export GOPRIVATE=github.com/*
go install google.golang.org/grpc/cmd/[email protected]
Run from repository root.
protoc --go_out=. --go-grpc_out=. --proto_path=./grpc/proto ./grpc/proto/*.proto
-
Determine the Tag Name: First, follow the Version Naming Standards to decide on the appropriate tag name for the new version.
-
Tag the Associated Commit: To push a new version, you need to tag the associated commit with the chosen tag name. You can do this using the following command:
git tag {tag name}
-
Push the Tag to GitHub: Finally, push the newly created tag to GitHub:
git push --tags
- Example:
"v1.12.2"
- Expanded Format:
"v{Major Version}.{Minor Version}.{Patch Version}"