Skip to content

Commit

Permalink
🔧 not to force rebuild gotests
Browse files Browse the repository at this point in the history
Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>
  • Loading branch information
rinx committed Jul 6, 2020
1 parent a76ef1b commit 3bbadff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Makefile.d/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,12 @@ gotests/patch: \
find $(ROOTDIR)/internal/errors -name '*_test.go' | xargs sed -i -E "s%\"github.com/vdaas/vald/internal/errors\"%%g"
find $(ROOTDIR)/internal/errors -name '*_test.go' | xargs sed -i -E "s/errors\.//g"

# force to rebuild all GO_TEST_SOURCES targets
.PHONY: $(GO_TEST_SOURCES)
$(GO_TEST_SOURCES): \
./assets/test/templates/common \
$(GO_SOURCES)
@$(call green, $(patsubst %,"generating go test file: %",$@))
gotests -w -template_dir ./assets/test/templates/common -all $(patsubst %_test.go,%.go,$@)

# force to rebuild all GO_OPTION_TEST_SOURCES targets
.PHONY: $(GO_OPTION_TEST_SOURCES)
$(GO_OPTION_TEST_SOURCES): \
./assets/test/templates/option \
$(GO_OPTION_SOURCES)
Expand Down

0 comments on commit 3bbadff

Please sign in to comment.