#!/bin/sh # mesh-check-toolchain: go # # The Go part of the SDK's own check (novox/hq ADR 0237 as amended, ADR 0272): the Go binding, run by the build # seat in the mesh's Go toolchain, its own container, because the SDK's merge-check.sh declares it # (`# mesh-check-also: go go/merge-check.sh`) — and by hand, from anywhere: `sh go/merge-check.sh`. # # Formatted, vetted, and its whole suite run: the stdio loop and the local protocol mesh-cli speaks to the # node-engine. Standard library only, so nothing is fetched. set -eu cd "$(dirname "$0")" unformatted=$(gofmt -l .) if [ -n "$unformatted" ]; then echo "not gofmt'd:" echo "$unformatted" exit 1 fi go vet ./... go test -count=1 ./...