From df0c093f2bdbaf63cf426dacf1612d8fef6b3803 Mon Sep 17 00:00:00 2001 From: Ben Whaley Date: Wed, 14 Feb 2024 19:43:52 +1300 Subject: [PATCH] fixes Makefile for Go 1.17 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1b7b570..8887717 100644 --- a/Makefile +++ b/Makefile @@ -12,9 +12,9 @@ ifeq "$(VERSION)" "" VERSION="auto-build" endif -GOVERSION := $(shell go version | grep 1.15) +GOVERSION := $(shell go version | grep 1.17) ifeq "$(GOVERSION)" "" - $(error must be running Go version 1.15.x) + $(error must be running Go version 1.17.x) endif ifndef $(GOPATH) @@ -54,7 +54,7 @@ vendor: $(DEP) $(DEP) ensure build: - go build -i -ldflags "$(GO_LDFLAGS)" -o $(GOPATH)/bin/$(EXECUTABLE) $(PROJECT) + go build -ldflags "$(GO_LDFLAGS)" -o $(GOPATH)/bin/$(EXECUTABLE) $(PROJECT) build-linux: GOOS=linux GOARCH=amd64 go build -ldflags "$(GO_LDFLAGS)" -o $(GOPATH)/bin/$(EXECUTABLE)-linux-amd64 build-darwin-amd64: