Skip to content

Commit

Permalink
add cache clean to make build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
zackattack01 committed Sep 14, 2023
1 parent 930e9fb commit 9c44212
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ build_%: ARCHARG = $(if $(ARCH), --arch $(ARCH))
build_%: GOARG = $(if $(CROSSGOPATH), --go $(CROSSGOPATH))
build_%: GOBUILD = $(if $(CROSSGOPATH), $(CROSSGOPATH), go)
build_%: .pre-build
$(GOBUILD) clean -cache
$(GOBUILD) run cmd/make/make.go -targets=$(TARGET) -linkstamp $(OSARG) $(ARCHARG) $(GOARG)

fake_%: TARGET = $(word 2, $(subst _, ,$@))
Expand Down Expand Up @@ -240,6 +241,7 @@ proto:
@echo "Generated code from proto definitions."

test: generate
go clean -testcache
go test -cover -coverprofile=coverage.out -race $(shell go list ./... | grep -v /vendor/)

##
Expand Down

0 comments on commit 9c44212

Please sign in to comment.