Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 834 Bytes

BUILDING.md

File metadata and controls

23 lines (16 loc) · 834 Bytes

Building

In order to build a local binary for testing follow these steps:

  1. Install Go >=1.16.4

  2. Install GoReleaser install >= v0.166.0 (latest)

  3. Install golangci-lint >=1.140.1

  4. Clone the Circonus Unified Agent repository:

    cd ~/src
    git clone https://github.com/circonus-labs/circonus-unified-agent.git
  5. 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 the linux target.