Skip to main content

Development Setup

Requires Go 1.26+ installed.

Build from source

CGO_ENABLED=0 \
GOOS=darwin \
GOARCH=arm64 \
go build \
-ldflags='-w -s -extldflags "-static"' \
-tags netgo \
-o validator \
cmd/validator/validator.go

For Intel Macs, use GOARCH=amd64.

Install:

cp ./validator /usr/local/bin/
chmod +x /usr/local/bin/validator

Run tests

go test ./...

Docker build

docker build . -t config-file-validator:latest

Run against a local directory:

docker run --rm -v "$(pwd):/work" config-file-validator:latest /work