My typical endly test automation is parametrized to takes place either on my localhost(osx) or on staging box (linux), ideally I want to build separately cross platform app binary.
All that said when I build my app binary on OSX for linux, I am seeing the following
export GOOS=linux
go build
# github.com/alexbrainman/odbc/api
../../../../github.com/alexbrainman/odbc/api/api.go:17:9: undefined: SQLSMALLINT
../../../../github.com/alexbrainman/odbc/api/api.go:18:9: undefined: SQLUSMALLINT
../../../../github.com/alexbrainman/odbc/api/api.go:19:9: undefined: SQLUSMALLINT
My application uses odbc to connect to vertica, and at the moment the only available Vertica driver in go uses CGO, Is there a way to build cross platform CGO independent, statically compiled app?