Skip to content

Commit

Permalink
fixes Makefile for Go 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhaley committed Feb 14, 2024
1 parent 4369ee2 commit df0c093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit df0c093

Please sign in to comment.