Skip to content

Commit

Permalink
GO_MATRIX defaults to empty if GO_MATRIX_ARCH or GO_MATRIX_OS are set
Browse files Browse the repository at this point in the history
  • Loading branch information
na4ma4 committed Aug 10, 2021
1 parent 59f12d2 commit 23b7f25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ GO_RELEASE_ARGS ?= -v -ldflags "-X main.version=$(GO_APP_VERSION) -s -w"
# GO_MATRIX is a whitespace separated set of operating systems and architectures.
GOHOSTOS := $(shell go env GOHOSTOS)
GOHOSTARCH := $(shell go env GOHOSTARCH)
ifneq ($(GO_MATRIX_ARCH)$(GO_MATRIX_OS),)
GO_MATRIX ?=
else
GO_MATRIX ?= $(GOHOSTOS)/$(GOHOSTARCH)
endif

# GO_TEST_REQ is a space separated list of prerequisites needed to run tests.
GO_TEST_REQ +=
Expand Down

0 comments on commit 23b7f25

Please sign in to comment.