#! /bin/sh
set -e
go fmt -x github.com/antithesishq/antithesis-sdk-go/assert
go fmt -x github.com/antithesishq/antithesis-sdk-go/instrumentation
go fmt -x github.com/antithesishq/antithesis-sdk-go/internal
go fmt -x github.com/antithesishq/antithesis-sdk-go/lifecycle
go fmt -x github.com/antithesishq/antithesis-sdk-go/random

go fmt -x github.com/antithesishq/antithesis-sdk-go/tools/antithesis-go-instrumentor
go fmt -x github.com/antithesishq/antithesis-sdk-go/tools/antithesis-go-instrumentor/cmd
go fmt -x github.com/antithesishq/antithesis-sdk-go/tools/antithesis-go-instrumentor/common
go fmt -x github.com/antithesishq/antithesis-sdk-go/tools/antithesis-go-instrumentor/instrumentor
go fmt -x github.com/antithesishq/antithesis-sdk-go/tools/antithesis-go-instrumentor/assertions

go build github.com/antithesishq/antithesis-sdk-go/assert
go build github.com/antithesishq/antithesis-sdk-go/lifecycle
go build github.com/antithesishq/antithesis-sdk-go/internal
go build github.com/antithesishq/antithesis-sdk-go/random
go build github.com/antithesishq/antithesis-sdk-go/instrumentation

go install tools/antithesis-go-instrumentor/*.go
