Merge pull request #9192 from adamreese/fix/rebuild-on-gomod-change

fix(Makefile): rebuild the binary if go.mod has changed
This commit is contained in:
Adam Reese 2021-01-06 11:36:44 -08:00 committed by GitHub
commit 6760dda91f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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