mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user