mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user