Categorygithub.com/ZeraVision/go-zera-network
module
0.0.145
Repository: https://github.com/zeravision/go-zera-network.git
Documentation: pkg.go.dev

# README

go-zera-network

At set of Zera Network packages in Go using GRPC to communicate.

Setup

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

Troubleshooting

In the event go get returns a 404 error:

  1. Ensure that your machine is using the correct Personal Access Token or is authenticated with Github correctly.
  2. Temporarily adjust the environment variable to include the repository URL by setting GOPRIVATE to github.com/ZeraVision/go-zera-network.

    Powershell

    $env:GOPRIVATE="github.com/*"
    

    ZSH Bash

    export GOPRIVATE=github.com/*
    

Development

Setup (optional: only needed to generate proto files)

go install google.golang.org/grpc/cmd/[email protected]

Generating proto/gRPC files

Run from repository root.

protoc --go_out=. --go-grpc_out=. --proto_path=./grpc/proto  ./grpc/proto/*.proto

Pushing New Version to Github

  1. Determine the Tag Name: First, follow the Version Naming Standards to decide on the appropriate tag name for the new version.

  2. 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} 
    
  3. Push the Tag to GitHub: Finally, push the newly created tag to GitHub:

    git push --tags 
    

Version Naming Standards {#naming-standards}

  • Example: "v1.12.2"
  • Expanded Format: "v{Major Version}.{Minor Version}.{Patch Version}"

# Packages

No description provided by the author