From 4e80282bd14364a9944b06f0f5354d61a80dea70 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Tue, 13 Aug 2019 10:04:45 -0400 Subject: [PATCH] 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. --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 8c3fef57f..4ccaf2550 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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)