This guide will help you set up your development environment for contributing to the Apache Synapse Go project.
Follow the official Go installation instructions for your platform.
Verify your installation:
go version
git clone https://github.com/YOUR_USERNAME/synapse-go.git cd synapse-go
git remote add upstream https://github.com/apache/synapse-go.git
Install recommended Go development tools:
go install golang.org/x/tools/cmd/goimports@latest go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
Build the project using Make:
make build
This will:
bin/ directoryRun the test suite:
make test
Create a new branch for your work:
git checkout -b feature/your-feature-name
go fmt ./...
golangci-lint run
make test
git commit -m "Add feature XYZ"
git push origin feature/your-feature-name
To run the Synapse server locally:
make build bin/synapse
To work on documentation:
pip install mkdocs mkdocs-material
mkdocs serve
Problem: Dependencies failing to download Solution: Run go mod tidy to clean up dependencies
Problem: Test failures Solution: Check that your Go version meets requirements and that you haven't broken existing functionality
If you encounter issues setting up your development environment, please: