5 Commits

Author SHA1 Message Date
Patrick East 167f455277 build: Force module mode and using only the vendor directory
There are a handful of scripts that were making `go run` calls without
the required environment vars setup force go to use modules and only
use the vendor directory.

For golang 1.11/12 if OPA was in a path outside of the GOPATH it would
switch into module mode automatically (by default) and then try to
fetch packages and stuff remotely rather than use the vendor dir.

For golang 1.13+ any directory for OPA would (by default) result in
trying to use the remote modules rather than vendor dir.

Fixes: #2063
Signed-off-by: Patrick East <east.patrick@gmail.com>
2020-02-11 15:35:51 -05:00
Patrick East 29008ffffd Use goimports instead of fmt
This switches to use goimports configured for the opa directory to
do the formatting checks (which now includes ordering of imports).

It will _not_ change imports, only the order of them.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-27 09:55:11 -04:00
Torin Sandall b75bca7f0d Fix Travis-CI configuration to source script 2016-11-09 16:18:34 -08:00
Torin Sandall 9d34061ced Add automatic Docker image build and push 2016-11-09 14:43:38 -08:00
Torin Sandall 1931ea2456 Add Makefile targets to lint and fix errors
Added golint dependency.
2016-04-05 10:26:07 -07:00