Force modules to be enabled when using make

Without this, if someone has opa checked out in their gosrc path
it would _not_ default to using modules. This will force the build
commands to treat the repo as a module at all times.

Signed-off-by: Patrick East <east.patrick@gmail.com>
This commit is contained in:
Patrick East
2019-09-21 10:03:51 -07:00
parent 36c1374b82
commit de842689c3
+2 -3
View File
@@ -4,9 +4,8 @@
VERSION := 0.15.0-dev
# Always use the vendor directory. Remove this
# when the OPA vendor directory is removed.
GO := GOFLAGS=-mod=vendor go
# Force modules on and to use the vendor directory.
GO := GO111MODULE=on GOFLAGS=-mod=vendor go
GOVERSION := 1.12.9
GOARCH := $(shell go env GOARCH)
GOOS := $(shell go env GOOS)