From 128f9ad42d6ff566e3d41c4c735d05eb54c1a2a5 Mon Sep 17 00:00:00 2001 From: David Allen Date: Mon, 12 Aug 2024 17:28:05 -0600 Subject: [PATCH] Updated Makefile to include GOPATH in some targets --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 43aea4b..f8de63c 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ $(error VERSION is not set. Please review and copy config.env.default to config endif SHELL := /bin/bash +GOPATH ?= $(shell echo $${GOPATH:-~/go}) .DEFAULT_GOAL := all .PHONY: all @@ -50,7 +51,7 @@ inst: ## go install tools .PHONY: goreleaser release: ## goreleaser build $(call print-target) - goreleaser build --clean --single-target --snapshot + $(GOPATH)/bin/goreleaser build --clean --single-target --snapshot .PHONY: build build: ## goreleaser build @@ -65,12 +66,12 @@ container: .PHONY: spell spell: ## misspell $(call print-target) - misspell -error -locale=US -w **.md + $(GOPATH)/bin/misspell -error -locale=US -w **.md .PHONY: lint lint: ## golangci-lint $(call print-target) - golangci-lint run --fix + $(GOPATH)/bin/golangci-lint run --fix .PHONY: test test: ## go test