TBD.
- Golang 1.24.0 or newer
- golangci-lint
- pre-commit
-
Rename Go module name:
go mod edit -module YOUR_MODULE_NAME
Example:
go mod edit -module github.com/yourusername/yourprojectname
-
Find all occurrences of
github.com/yokeTH/our-grader-backend/internal
and replace them withYOUR_MODULE_NAME
:find . -type f -name '*.go' -exec sed -i '' 's|github.com/yokeTH/our-grader-backend|YOUR_MODULE_NAME|g' {} +
Install pre-commit and set up hooks:
brew install pre-commit
pre-commit install
Install and initialize commitlint to enforce commit message conventions:
go install github.com/conventionalcommit/commitlint@latest
commitlint init
Example commit message:
feat: add user authentication
After renaming the module, ensure dependencies are updated:
go mod tidy