Skip to content

Commit 3ed82fc

Browse files
committed
build: Add go.mod/go.sum and Makefile to SOURCES
Listing explicitly `go.mod`/`go.sum` will ensure we rebuild what's needed when there are go module changes, or go version changes. It's also worth rebuilding everything when the `Makefile` changes as there could be changes to the build flags. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
1 parent 16cf22d commit 3ed82fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ MODULEPATH = $(ORG)/crc/v2
3737
PACKAGE_DIR := packaging/$(GOOS)
3838

3939
SOURCES := $(shell git ls-files '*.go' ":^vendor")
40+
SOURCES := $(SOURCES) go.mod go.sum Makefile
4041

4142
RELEASE_INFO := release-info.json
4243

0 commit comments

Comments
 (0)