In order to build a local binary for testing follow these steps:
-
Install Go >=1.16.4
-
Install GoReleaser install >= v0.166.0 (latest)
-
Install golangci-lint >=1.140.1
-
Clone the Circonus Unified Agent repository:
cd ~/src git clone https://github.com/circonus-labs/circonus-unified-agent.git
-
Build a snapshot
cd ~/src/circonus-unified-agent goreleaser build --rm-dist --snapshot
Note: you can build for a specific target to avoid buidling all OS binaries by setting
GOOS
and using--single-target
. For example:GOOS=linux goreleaser --rm-dist --snapshot --single-target
will only produce the binaries for thelinux
target.