From a58209dfa41d291c49dcb42b123b336c782356f3 Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Tue, 5 Jan 2021 13:40:06 -0800 Subject: [PATCH] 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 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 931fe973d..571241cbe 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,9 @@ TESTS := . TESTFLAGS := LDFLAGS := -w -s 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 SHELL = /usr/bin/env bash