This is a repo that holds multiple different go modules that are shared between service. This is useful to reduce code duplication across multiple services.
A lot of common modules use a configuration of some kind, this way the modules can be shared and each service that requires a small change can still share it.
If you want to make a change in a specific go module, these are the steps.
- Make changes in the go module.
- Push the changes to the main branch.
- Get the latest config hash, for example
That would be d9a3cbff66fe217a2964e77eb154b05c89f68a55
git log commit d9a3cbff66fe217a2964e77eb154b05c89f68a55 (HEAD, origin/main) Author: Tom Bowyer <tom4310@gmail.com> Date: Sun Oct 24 15:08:25 2021 +1000 Fix null
- Go back into the repo you wanted the change for. e.g. uacl/chatter
- Install the latest change
go get github.com/EmotivesProject/common/logger@d9a3cbff66fe217a2964e77eb154b05c89f68a55
If you wanted to create a brand new common module, these are the steps
- Create a folder
- Initialize the go module with the github name
go mod init github.com/EmotivesProject/common/new
- Make changes and push to the main branch
- Optional. Install the new module in the relevant service