Skip to content

Commit

Permalink
build: Add go.mod/go.sum and Makefile to SOURCES
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cfergeau committed Jul 30, 2024
1 parent 16cf22d commit 3ed82fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ MODULEPATH = $(ORG)/crc/v2
PACKAGE_DIR := packaging/$(GOOS)

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

RELEASE_INFO := release-info.json

Expand Down

0 comments on commit 3ed82fc

Please sign in to comment.