From 4dbef80b1fb08099836054447de5d6b4f12faa93 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Sun, 30 Aug 2020 11:11:35 +0900 Subject: [PATCH] Allow using alternative go binary on build --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e874205..fe65653 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ PLUGIN_NAME := terraform-provider-helmfile DIST_PATH := dist/${OS}_${ARCH} GO_PACKAGES := $(shell go list ./... | grep -v /vendor/) GO_FILES := $(shell find . -type f -name '*.go') - +GO ?= go .PHONY: all all: test build @@ -16,11 +16,11 @@ test: test-all .PHONY: test-all test-all: - @TF_ACC=1 go test -v -race $(GO_PACKAGES) + @TF_ACC=1 $(GO) test -v -race $(GO_PACKAGES) ${DIST_PATH}/${PLUGIN_NAME}: ${GO_FILES} mkdir -p $(DIST_PATH); \ - go build -o $(DIST_PATH)/${PLUGIN_NAME} + $(GO) build -o $(DIST_PATH)/${PLUGIN_NAME} .PHONY: build build: ${DIST_PATH}/${PLUGIN_NAME}