Honor GO_TAGS env-var
Allow honoring `GO_TAGS` environment variable if set. Currently, users must set variable as a makefile argument e.g. `make GO_TAGS=ui dev`, and this allows us to use env-var syntax (e.g. `GO_TAGS=ui make dev`) and make it convenient to set GO_TAGS globally.
This commit is contained in:
parent
03433f35d4
commit
c6f5fd3baa
|
@ -6,7 +6,7 @@ GIT_COMMIT := $(shell git rev-parse HEAD)
|
|||
GIT_DIRTY := $(if $(shell git status --porcelain),+CHANGES)
|
||||
|
||||
GO_LDFLAGS := "-X github.com/hashicorp/nomad/version.GitCommit=$(GIT_COMMIT)$(GIT_DIRTY)"
|
||||
GO_TAGS =
|
||||
GO_TAGS ?=
|
||||
|
||||
GO_TEST_CMD = $(if $(shell which gotestsum),gotestsum --,go test)
|
||||
|
||||
|
|
Loading…
Reference in New Issue