Building from Source
Building radar from source requires Git and Go 1.26.10 or later. The Go installation guide describes how to install a current Go release on any platform.
Use the following steps to build radar from source:
-
Confirm that
go versionreports Go 1.26.10 or later:go version -
Clone the pgEdge radar repository and change into its directory:
git clone https://github.com/pgEdge/radar.git cd radar -
Build a static binary for your platform:
CGO_ENABLED=0 go build -ldflags="-s -w" -o radar . -
Optionally, move the binary into a directory on your
PATH:sudo mv radar /usr/local/bin/
The CONTRIBUTING.md file describes cross-compilation and the development setup.