From de842689c38b4d05a7ae2dcf36747451f89bc378 Mon Sep 17 00:00:00 2001 From: Patrick East Date: Sat, 21 Sep 2019 10:03:51 -0700 Subject: [PATCH] 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 --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0b6e407925..a4d11fa2c5 100644 --- a/Makefile +++ b/Makefile @@ -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)