fix(Makefile): rebuild the binary if go.mod has changed

Rebuild the binary when go.mod or go.sum has changed

Signed-off-by: Adam Reese <adam@reese.io>
pull/9192/head
Adam Reese 4 years ago
parent 49f895db6b
commit a58209dfa4
No known key found for this signature in database
GPG Key ID: 06F35E60A7A18DD6

@ -24,7 +24,9 @@ TESTS := .
TESTFLAGS := TESTFLAGS :=
LDFLAGS := -w -s LDFLAGS := -w -s
GOFLAGS := GOFLAGS :=
SRC := $(shell find . -type f -name '*.go' -print)
# Rebuild the buinary if any of these files change
SRC := $(shell find . -type f -name '*.go' -print) go.mod go.sum
# Required for globs to work correctly # Required for globs to work correctly
SHELL = /usr/bin/env bash SHELL = /usr/bin/env bash

Loading…
Cancel
Save