#!/bin/sh
# script/build: compile every package. dcf is a library, so this checks
# that it compiles and writes no binary. It needs Go on the host, and the
# final stage of the Dockerfile runs it too.
set -eu

ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"

main() {
    cd "$ROOT"
    CGO_ENABLED=0 go build ./...
}

main "$@"
