- Set up SSH with the remote git
- Set
GOPRIVATE
in.pam_environment
GOPRIVATE=sabariram.com
- Set the global config of git
[email protected]:SabariramC/goserverbase.insteadof=https://github.com/sabariramc/goserverbase
- In the module that is going to use this package add the following in the go.mod file
replace github.com/sabariramc/goserverbase => github.com/sabariramc/goserverbase.git <<tag>>
eg:
replace github.com/sabariramc/goserverbase => github.com/sabariramc/goserverbase.git v0.1.1